GX4010: unknown event modifier or special event
An on: directive has a modifier or a special event that Gx does not know.
Cause
An on: directive has a modifier or a special event that Gx does not know.
Example
package cart
signals {
Open bool = false
}
<button on:click.twice={$Open = !$Open}>Menu</button>gx check reports:
cart/Cart.gx:7:25: GX4010: unknown modifier .twiceFix
- Use one of the modifiers:
.prevent,.stop,.once,.outside,.window,.debounce(300ms)or.throttle(1s). - Use one of the special events:
load,visibleorinterval(5s).