Sorry if the example was too complex. I wanted to show my complete use case so that someone could point out whether there was a more idiomatic way of doing what I was trying to do (I was thinking variants but in the end it didn't work quite right).
Attached is a more generic version, which I hope is simpler to understand.
The crux of my issue is the fact that the state of a "pristine" text field -- that is to say, a text field that has not received input -- is filled
. This should not be the case, because the text field is obviously empty at that point.
This behavior is showcased in this new screenshot from the simplified version :
The patch provided in #2 does seem to solve my issue, so I'll mark this RTBC.
maxime-adagp → created an issue.
Trying the commit you provided in #6 and #7 solved my immediate issue. I've run into other problems but I'll open a separate issue for those. Thanks!
maxime-adagp → created an issue.