This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-18
Channels
- # aleph (7)
- # announcements (11)
- # beginners (186)
- # calva (17)
- # cider (26)
- # clj-kondo (4)
- # cljdoc (12)
- # cljs-dev (3)
- # clojars (1)
- # clojure (105)
- # clojure-berlin (1)
- # clojure-chicago (1)
- # clojure-dev (34)
- # clojure-europe (3)
- # clojure-italy (4)
- # clojure-nl (27)
- # clojure-russia (19)
- # clojure-uk (25)
- # clojuredesign-podcast (4)
- # clojurescript (54)
- # cursive (6)
- # data-science (1)
- # datascript (11)
- # datomic (5)
- # emacs (3)
- # events (2)
- # fulcro (13)
- # graalvm (5)
- # jobs (15)
- # leiningen (7)
- # luminus (3)
- # melbourne (1)
- # nrepl (1)
- # nyc (2)
- # onyx (4)
- # pathom (6)
- # pedestal (18)
- # re-frame (19)
- # reagent (10)
- # shadow-cljs (27)
- # spacemacs (32)
- # sql (11)
- # tools-deps (35)
- # vim (50)
I have two divs, let's call them a and b. Both of them have {:onMouseEnter f} maps in their [:div ...] vectors. Both have a single child. The only difference is that for a, the child does not take up all of the space of a, but for b, the child does take up all of the space of b. When I move the mouse cursor into them, event.target becomes a for a, but b's child for b. How come? I tried it with pure JavaScript, and it does not act like this. https://codepen.io/anon/pen/gVOWoG?editors=1111 Here, the parent always becomes the target.
I tried adding padding to b, so that it, like a, was bigger than its child, and then b started becoming the event.target
React docs have some info: https://reactjs.org/docs/events.html#supported-events
> The event handlers below are triggered by an event in the bubbling phase. To register an event handler for the capture phase, append Capture to the event name; for example, instead of using onClick, you would use onClickCapture to handle the click event in the capture phase.
is there any documentation on how ratoms/tracking/reactions actually are supposed to work?
haven't found any - have been reading ratom.cljs and component.cljs and observing execution using dirac
@lilactown fwiw, though i thought there were some inaccuracies, i got some related hints here about ratoms and components: https://www.reddit.com/r/Clojurescript/comments/9im81n/how_does_reframe_know_which_component_to_render/e6lrsc5/