EvolvedWeb / evowc

Evolved Web Components
MIT License
8 stars 0 forks source link

Setting capture `.click:c` is not working #92

Closed intervalia closed 3 months ago

intervalia commented 3 months ago

Describe the bug Adding :c should enable the capture state when adding an event listener and it is not

To Reproduce Add an event handler like this: <button .click:c="clickHandler">Click Me</button> And the generated code will not include the option to use capture mode.

Add an event handler like this: <button .click:c1="clickHandler">Click Me</button> And the generated code WILL include the option to use capture mode and once.

Expected behavior :c should work on its own without the need to use :1.

intervalia commented 3 months ago

Fixed in next release