Last active
June 22, 2017 23:38
-
-
Save luigy/8311ff3b7832eaf5147c5381c070f7fa to your computer and use it in GitHub Desktop.
different behavior with ghcjs vs ghc(jsaddle-warp)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Control.Monad | |
import Reflex.Dom | |
main :: IO () | |
main = run $ mainWidget' $ do | |
(outer, inner) <- el' "div" $ do | |
elStopPropagationNS Nothing "div" Click $ do | |
button "INNER" | |
dynText <=< holdDyn "" $ leftmost ["OUTER" <$ domEvent Click outer, "INNER" <$ inner] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
versions used:
ghcjs-dom-jsaddle-0.8.0.0
jsaddle-0.8.3.2
jsaddle-dom-0.8.0.0
jsaddle-warp-0.8.3.1