[IMP] shopfloor_mobile_base: allow user input in date-picker-input + code cleanup#1132
Open
nicolas-delbovier-acsone wants to merge 7 commits intoOCA:16.0from
Open
Conversation
Refactor the DatePicker component to use standard Vue event bubbling instead of a global event hub and watchers. - Replace the 'date' watcher with a manual $emit on the '@change' event to prevent redundant event triggers and improve performance. - Remove the 'datepicker:newdate' event_hub listener as global broadcasting is unnecessary for this local UI component. - Remove the 'handler_to_update_date' prop, shifting the responsibility of date processing to the parent component. - Simplify the template and remove unused imports.
… year/month selection
…g keyboard - Use user locale for date input - Use input masking to auto add the separators - Prevent from entering invalid characters - Show input error message in case of invalid input - Reset input if date-picker is used instead
Contributor
|
Hi @simahawk, |
Changed the date-picker-input behavior to trigger the calendar popup only when the prepend icon is clicked, rather than on text field focus. This prevents the picker from obstructing the screen when users prefer to type the date manually Co-authored-by: Jacques-Etienne Baudoux <je.baudoux@gmail.com>
nicolas-delbovier-acsone
added a commit
to acsone/wms
that referenced
this pull request
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a rework of the ideas in #1101. It addresses a double-trigger bug observed when using a watch on the date property, replacing it with an explicit event-driven approach.
Changes
Input Handling (UX)
Architectural Refactoring (Cleanup)
handler_to_update_datefunction since dealing with date transformation should be the responsability of the parent$emitcalls during change events. This prevents redundant triggers that were observed in [16.0][IMP] shopfloor_mobile_base: Improves date-picker UX #1101.