taipy icon indicating copy to clipboard operation
taipy copied to clipboard

Input visual element has a frustrating delay

Open AlexandreSajus opened this issue 1 year ago • 3 comments

The input visual element will register the inputted text at a specific time delay (defined by the property change_delay). When this register happens, the app will have a quick lag that will cause typed text not to be registered. This is very frustrating: The user is typing something, stops for half a second, and then continues typing, and some of his new characters are missing.

You can test this issue on TalkToTaipy or TaipyGPT. Just type at different speeds while taking quick pauses; some characters won't be registered at some point, which will be frustrating. You can also try it on mobile; the change_delay seems to change between local, Cloud, and Mobile.

Expected change The text should only be registered regularly if the user defines an on_change function. In my two use cases, I only need the user's text when he presses "Enter" (on_action). I do not need it registered regularly, so I did not define on_change.

AlexandreSajus avatar Dec 14 '23 09:12 AlexandreSajus

We have been getting many complaints on this, switching priority to critical. Also there might be the same issue on the slider visual element

AlexandreSajus avatar Jan 11 '24 09:01 AlexandreSajus

For the slider, you have the continuous property to not call the on_change function every time the variable is updated.

FlorianJacta avatar Jan 19 '24 10:01 FlorianJacta

Sometimes, even with continuous disabled, the app does not have enough resources to keep up and will lag the slider. Maybe that's another issue

AlexandreSajus avatar Jan 19 '24 10:01 AlexandreSajus

when changeDelay = -1 & Enter in ActionKeys (or no ActionKeys) => the input value will be updated only on Enter

FredLL-Avaiga avatar Feb 13 '24 08:02 FredLL-Avaiga

What is the reason to also have an on_action? Will the value still go to the on_change callback each time if there is an on_action and no on_action?

FlorianJacta avatar Feb 13 '24 08:02 FlorianJacta

What is the reason to also have an on_action? Will the value still go to the on_change callback each time if there is an on_action and no on_action?

Fixed the spec

FredLL-Avaiga avatar Feb 13 '24 10:02 FredLL-Avaiga