- and how I discovered that browsers are awesome! 😍
This is a follow-up on my previous post, where I showed how to decode DOM nodes from the event ...
For further actions, you may consider blocking this person and/or reporting abuse
👏👏👏 Nicely done. You can handle Home and End keys as well.
Waiting for the next post
Thank you! 🙂
Absolutely true about Home and End keys, but since they were marked as optional here on keyboard interactions, I decided not to include them to make the article more compact 🙂
Just wanted to say thank you for writing this! I was working on something else and could not figure out how to get
preventDefault
to work with anything but always preventing the default action or never preventing it.This was the only post I was able to find that showed something other than:
so thank you for taking to time to write this. Otherwise I might never have gotten it working.
Also, the elm-accessible-dropdown package looks pretty neat too
Awesome post!
I had also implemented a recursive "outside" decoder in a "dropdown-ish" type of widget. However, I was able to get rid of some subscriptions after I adapted something similar to your usage of
focusout
andrelatedTarget
. Thanks so much!Elm syntax is gorgeous!