You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the signal that serves as the value for a TextInput is updated, if the value it was last set to by method of user input is the same, the UI does not react.
This is due to TextInput.buffer.last_buffer only being set on user input and an optimization where request_layout is not called when the last buffer and the current buffer are the same:
My use case for this is listening to arrow key up/down events and increasing the value in the TextInput accordingly. As a temporary fix, I am calling request_layout myself in that event handler when I update the value.
Demo of issue with my use case:
upnp_3cHDqTShhs.mp4
The text was updated successfully, but these errors were encountered:
When the signal that serves as the value for a
TextInput
is updated, if the value it was last set to by method of user input is the same, the UI does not react.This is due to
TextInput.buffer.last_buffer
only being set on user input and an optimization whererequest_layout
is not called when the last buffer and the current buffer are the same:floem/src/views/text_input.rs
Lines 1044 to 1060 in 4bf974c
My use case for this is listening to arrow key up/down events and increasing the value in the
TextInput
accordingly. As a temporary fix, I am callingrequest_layout
myself in that event handler when I update the value.Demo of issue with my use case:
upnp_3cHDqTShhs.mp4
The text was updated successfully, but these errors were encountered: