We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following program should do nothing when the text is clicked, but the Ugh message appears anyway.
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (void) import Data.Default import Data.Text (Text) import JavaScript.JQuery
default (Text)
main = do body <- select "body" button <- select "
The text was updated successfully, but these errors were encountered:
N.B. If I open the javascript console in the browser and run $().off on that element, the event handler is removed.
Sorry, something went wrong.
No branches or pull requests
The following program should do nothing when the text is clicked, but the Ugh message appears anyway.
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (void)
import Data.Default
import Data.Text (Text)
import JavaScript.JQuery
default (Text)
main = do
body <- select "body"
button <- select "
response <- select "
appendJQuery button body
detach <- click (\e -> void $ appendJQuery response body) def button
detach
return ()
The text was updated successfully, but these errors were encountered: