Skip to content

feat(select): allow for letter key debounce interval to be customized #16579

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

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

crisbeto
Copy link
Member

Allows the consumer to customize the letter key debounce interval. This can be useful for some cases where the values are harder to type quickly (e.g. ZIP codes).

Fixes #16472.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release labels Jul 21, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 21, 2019
@@ -426,6 +426,9 @@ export class MatSelect extends _MatSelectMixinBase implements AfterContentInit,
/** Object used to control when error messages are shown. */
@Input() errorStateMatcher: ErrorStateMatcher;

/** Time to wait in milliseconds after the last keystroke before moving focus to an item. */
@Input() letterKeyDebounceInterval: number;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a public API, "letterKey" seems a little too much like an implementation detail. How about typeaheadDebounceInterval?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that sounds better. Changed.

@crisbeto crisbeto force-pushed the 16472/select-debounce-interval branch from ada3638 to 687b68e Compare July 23, 2019 16:51
Allows the consumer to customize the letter key debounce interval. This can be useful for some cases where the values are harder to type quickly (e.g. ZIP codes).

Fixes angular#16472.
@crisbeto crisbeto force-pushed the 16472/select-debounce-interval branch from 687b68e to 19745fb Compare July 23, 2019 18:26
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jul 23, 2019
@jelbourn jelbourn merged commit f23a56a into angular:master Jul 25, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mat-select: Possibility to set typing debounceInterval
3 participants