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

[IMP] parser: .trim modifier implies .lazy modifier #1575

Closed FrancoisGe closed 9 months ago

FrancoisGe commented 9 months ago

Before to this commit, the .trim modifier did not work correctly. The value in the model is always trim at each input event but not the visual value in the input. This difference between the visual and the model value cause few strange bug.

After reflection, we think that we always want to be in .lazy when we use .trim. Because we want to trim the final value during the onchange event and not at each input event. If we do it at each input event, we can't write more then one word easily.

So this commit change the behavior of the .trim modifier to always be in .lazy