-
Notifications
You must be signed in to change notification settings - Fork 8
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React4s/Materialize Modal Popup not Updating as Expected #19
Comments
There's nothing special about modal popups in React4s. The render method looks OK to me. Can you post the code for the whole component, including the State variables and makeDialogBody/makeButtons? |
Here is a simplified version, without external dependencies that shows the problem.
The class is used in a navbar like this:
If you click on the Test button in the navbar and then select "Load from Local Storage" from the menu, you can see in the browser console that some name elements were generated in |
Yes, that is the expected behavior, however I am not seeing it.
|
It looks like you need to call some Materialize JavaScript code after dynamically updating a
So this is not a React4s issue. Thanks for pointing me in the right direction. |
I have a React4s/materialize modal popup where you choose an item from a
<select>
menu in the dialog and that should update the layout below depending on the selection. However, even though the state variable is updated and render is called as expected, the changes are not propagated to the display. Is there anything special in React or React4s (or materialize) about modal popups that would prevent them from being updated once displayed?The basic render method looks like this:
And I have verified that the items are being added correctly in the methods called. Its just that they don't show up if changed as a result of an event. The items only show up if created that way the first time. It seems like the layout won't change, once displayed.
The text was updated successfully, but these errors were encountered: