-
Notifications
You must be signed in to change notification settings - Fork 160
Closed
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug📈 enhancement🕐 time-picker📅 date-picker🧨 severity: medium✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.version: 9.1.x
Description
Description
When you drag and drop text over a date/time the text is allowed to exceed the limits of the mask and is not parsed as a value (or ignored if not valid). Closely related to #6710
- igniteui-angular version: 9
- browser: N/A
Steps to reproduce
- Open Dropdown mode demo
- [Optional] clear the editor
- Select the text from anywhere in the page
- Drag and drop it to the date picker
(same is reproducible with the time picker dropdown demo)
Result
The text is allowed go outside of the mask limits and you can 'delete' parts of the mask and literals:

Also Error: InvalidPipeArgument: 'Unable to convert "Invalid Date" into a date' for pipe 'e' is thrown if you blur the date picker (only) in the state above since the mask did not ensure numeric values.
Expected result
The dropped text should be treated as paste and applied over the mask. Ideally, when dragging, the mask should appear with the browser cursor to allow to determine the drop location.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug📈 enhancement🕐 time-picker📅 date-picker🧨 severity: medium✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.version: 9.1.x