-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
on UI.valueChange
not triggered until ESC pressed
#171
Comments
FixA fix for this was not to use ...
on change input $ const $ do
liftIO $ handler "File selected."
-- |change event.
change :: Element -> Event ()
change = void . domEvent "change" The documentation for the DOM
|
The main reason why I used the However: Do browser really follow this specification, or do they also emit a |
I ran into this (or similar) problem when I wanted to use sliders (input type = range) as input. https://gitlab.imn.htwk-leipzig.de/waldmann/matrix-game/blob/master/src/Main.hs#L101 @maweki solved it with |
Here is the code for the problem described below.
Problem
text
of thediv
is"No file selected."
.input
and select a file.text
of thediv
not change.text
of thediv
change to"File selected."
. (Chrome only)button
instead ofinput
, by using the commented line, and the problem is the same.Reproduce
git clone https://github.com/barischj/threepenny-slow-valuechange
cd threepenny-slow-valuechange
stack setup && stack build && stack exec threepenny-slow-frp-exe
System
Additional notes:
text
of thediv
won't update even after pressing ESC.The text was updated successfully, but these errors were encountered: