odoo / owl

OWL: A web framework for structured, dynamic and maintainable applications
https://odoo.github.io/owl/
Other
1.14k stars 344 forks source link

[FIX] parser: make t-on stricter #1442

Closed ged-odoo closed 1 year ago

ged-odoo commented 1 year ago

Before this commit, the t-on directive assumed that the next character would be a -, and ignored it, so if someone would write t-onclick by mistake, Owl would then add an event handler on the lick event, instead of click.

With this commit, we improve the parser to make it stricter and fail if there is no dash.

closes #1441

ged-odoo commented 1 year ago

@sdegueldre

ged-odoo commented 1 year ago

@brboi