timjs / elm-collage

Create interactive vector graphics and position them relative to each other
BSD 3-Clause "New" or "Revised" License
58 stars 19 forks source link

Defocus/Blur by bubbleing parent-event #21

Open gitLabor8 opened 6 years ago

gitLabor8 commented 6 years ago

I have a textfield wrapped in a collage called nodeBox and I want to impose a hitbox on it:

impose nodeBox (trigger hitbox)

Now, an onMouseLeave-event triggered by the hitbox will lead to a defocus/blur of the textfield. As can be seen in the document below, this leads to nasty bugs. I would like the focus to stay in the textfield, regardless of the parent-events.

knipsel