-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rolling-stock-editor: first character disappears when inputing in table #4670
Comments
works in Chrome, specific to Firefox ? |
Specific to firefox and specific to the used library, cf iddan/react-spreadsheet#192 |
I can't reproduce this bug (on Firefox). I do have the focus issue described here (#5307) though. Can we close this issue and report @nicolaswurtz comment to issue #5307? |
I can still reproduce today.
|
each "input" in the spreadsheet render a component, the first state of this component is a "view" mode, the second is an "edit" mode, at first click we are in view mode and it allows us to select multiple cells, when clicking another time in the same cell we enter in edit mode then we can add a value. i've find a way to force the cell's mode to "edit", but this mode is readonly. I'm gonna try to figure out if setting this mode not readonly is a solution with the author of the lib. |
conclusion (for now): this behavior is due to SpreadSheet, we can create custom cells to give to it the behavior that we want, but we will have other issues:
we can add more logic to retrieve thoses behaviors but in the end SpreadSheet will be totally useless and this "bug" resolution will turn to a new feature enhancement, with a lot of work. In fact this bug seems to be not major at all, we just have to click one time to select the cell, then a second time to edit the cell, as provided by the lib due to the lot of work this bug is postponed |
Hi! We triaged this demand to PM Team board: it's not exactly a bug — not a bug in our code — so we've to decide what to do and how to do it. |
What happened?
When trying to add a value in the "Vitesse / Effort" table of the rolling stock editor, the first character inputed disappears
What did you expect to happen?
No response
How can we reproduce it (as minimally and precisely as possible)?
go to rolling stock editor
click on "new rolling stock"
scroll down to the table & curve
enter any value in the table
watch the first character of your input disappear
What operating system, browser and environment are you using?
OSRD version (top right corner
Account
button >Informations
)8a7ba0c
The text was updated successfully, but these errors were encountered: