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 attempting to change the value of a form field, by entering the value and then pressing Enter on the keyboard, the form value is not always (fully) updated.
Steps to reproduce
Run php artisan twill:module events php artisan migrate
Go to admin console, to Events
Create an Event named "Whatever" using buttons (similar problem with the title field in the modal, but I am not focusing on that now)
Change description to "Description", press Enter.
Description should now be "Description"
Change description to "UpdatedDescription", press Enter.
Expected result
I expect the event to update with "UpdatedDescription" as description.
Actual result
The actual value of description is a trimmed version of "UpdatedDescription", i.e. "UpdatedDescrip". Exact value seems to vary each try. It seems to happen when you press enter quickly after finishing typing. It seems as if there is a timer running in the background that only "truly" registers form field changes once every x seconds. Press enter before? Your last characters are not registered.
The text was updated successfully, but these errors were encountered:
kalkoen
changed the title
Using enter to traverse content management leads to trimmed form input
Using enter to edit content leads to trimmed form input
Aug 25, 2021
Description
When attempting to change the value of a form field, by entering the value and then pressing Enter on the keyboard, the form value is not always (fully) updated.
Steps to reproduce
Run
php artisan twill:module events
php artisan migrate
Add
to twill-navigation.php
Add
Route::module('events');
to routes/admin.phpGo to admin console, to Events
Create an Event named "Whatever" using buttons (similar problem with the title field in the modal, but I am not focusing on that now)
Change description to "Description", press Enter.
Description should now be "Description"
Change description to "UpdatedDescription", press Enter.
Expected result
I expect the event to update with "UpdatedDescription" as description.
Actual result
The actual value of description is a trimmed version of "UpdatedDescription", i.e. "UpdatedDescrip". Exact value seems to vary each try. It seems to happen when you press enter quickly after finishing typing. It seems as if there is a timer running in the background that only "truly" registers form field changes once every x seconds. Press enter before? Your last characters are not registered.
Versions
Twill version: 2.4.0
Laravel version: 8.56.0
PHP version: 7.4.19
Database engine: MySQL
The text was updated successfully, but these errors were encountered: