Open ahmadov opened 3 years ago
@ahmadov thank you for reporting the issue. Before all to let you know that tabris 2.x uses old Android support libraries intended for 28 and lower versions. The issue is Android-specific and occurs when we update autoCapitalize
after setting the beforeTextChange
, textChanged
, and input
event handlers.
Since the issue is Android-specific and we use old support libraries in our 2.x branch, it is hard to introduce some solution in order to fix the issue that occurs with this scenario.
I would suggest setting autoCapitalize
before setting the beforeTextChange
, textChanged
, and input
event handlers or the best is to set the autoCapitalize
in the TextInput constructor.
Problem description
When
autoCapitalize
property changes,beforeTextChange
andtextChange
events fire.If someone relies only on
beforeTextChange
event to sync the value of the text input then the user will never get notified with the new value but they will receive the old value.This happens only on Android with Tabris 2.x but not with Tabris 3.x.
Expected behavior
Those events do not fire when
autoCapitalize
property changes.Environment
Code snippet
Output: