Skip to main content
4 events
when toggle format what by license comment
Apr 12, 2022 at 21:04 comment added MrC aka Shaun Curtis I'm not sure what you're expecting here. There's is no "generic" method, and frankly I don't see a need. I'll sign off and see if anyone else come up with a suitable answer!
Apr 12, 2022 at 16:16 comment added Giancarlo Sierra Thank you for this answer, wrapping elements in a component that handles the logic is a good idea. It achieves a solution for the simple button. My question is not seeking a solution for the button case, I'm questioning the general pattern with any element you want to disable and with possible multiple events per element. I'll add an Edit to clarify.
Apr 12, 2022 at 7:34 history edited MrC aka Shaun Curtis CC BY-SA 4.0
added 290 characters in body
Apr 12, 2022 at 7:23 history answered MrC aka Shaun Curtis CC BY-SA 4.0