-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Labels
📅 date-picker🧰 feature-request✅ 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: 8.2.x
Description
Is your feature request related to a problem? Please describe.
When using the igxDatePicker with editable input (dropdown mode), on input focus or date select the caret is placed at the end of the input.
Describe the solution you'd like
I would like to select the whole input content on focus or when picking a date. Below you will find the proposed solutions:
- Select the whole input content like the igDatePicker. Example:

Note: This is the behavior of simple html input as well. Example.
Workaround:
Currently, in order to achieve the above functionalitiy, I am using `getEditElement().select.
selection($event) {
requestAnimationFrame(() => {
this.datePicker.getEditElement().select();
});
}https://stackblitz.com/edit/angular-mask-and-datepicker-example
Metadata
Metadata
Assignees
Labels
📅 date-picker🧰 feature-request✅ 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: 8.2.x