-
Notifications
You must be signed in to change notification settings - Fork 145
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
inputElementConfig_initialValue doen't work after reload #409
Comments
Possibly related: #400 I can’t check that it’s fixed by that right now but this certainly rings a bell. |
Hi, I think the problem is still exist. any help? and my code is the same as @pkaterski : do
el "h4" $ text "Initial Value"
t2 <- inputElement $ def & inputElementConfig_initialValue .~ "input"
dynText $ value t2 this is what i really want to do: do
el "h4" $ text "Initial Value"
t2 <- inputElement $ def & inputElementConfig_elementConfig . elementConfig_initialAttributes .~ ("value" =: "input")
-- t2 <- inputElement $ def & inputElementConfig_initialValue .~ "input"
dynText $ value t2 I'm new here, so i may not understand the PR. Thanks!😭 |
Just to confirm @tomsmalley - this issue is still present when using HEAD for reflex-dom. The logic is correct for loading the page for the first time, such as a direct url or link. However, when reloading the page, the issue remains the same as before - the placeholder text will flash for a second and then disappear. The behaviour is also quite strange - I have another widget that depends on the |
Apologies! This bug is actually fixed - I just made a mistake by only updating reflex-dom, but this fix is in fact spread across reflex-dom and reflex-dom-cre. I recommend also closing #377 |
I think this is a bug.
It is even present on https://reflex-frp.org/tutorial. If you open the page and look at
tutorial4
andtutorial5
the first time it works as it should but after a reload the text inputs are empty (you can see that they load for a brief second and then they disappear).Basically this thing:
The issue is that after reloads the value loads just for a brief second and then it disappears. I've tried it on both Chrome and Firefox.
The text was updated successfully, but these errors were encountered: