Re: [tw5] focus=yes in edit widget causes input to be selected

2020-01-27 Thread Xavier Cazin
Hi Jeremy, Thank you for your answer: it lead me to switch to a more idiomatic code for the UI, which wouldn't trigger the edit-text refresh! Cheers, -- Xavier Cazin On Mon, Jan 27, 2020 at 7:08 PM Jeremy Ruston wrote: > Hi Xavier > > I think this is the venerable problem of the

Re: [tw5] focus=yes in edit widget causes input to be selected

2020-01-27 Thread Jeremy Ruston
Hi Xavier I think this is the venerable problem of the focus/selection not being retained over a refresh cycle. The only way to avoid it at present is to ensure that the edit-text widget doesn’t get refreshed. Best wishes Jeremy. > On 27 Jan 2020, at 16:50, Xavier Cazin wrote: > > Hello

[tw5] focus=yes in edit widget causes input to be selected

2020-01-27 Thread Xavier Cazin
Hello everyone, I stumble on an issue that I can seem to solve by myself: in the code below, I need to set focus=yes to counter the lost of focus caused by the <$set> content refresh : <$set name=foo value=<> > Refresh of the `foo` value: ''<>'' causes either //focus// or //user input// (when