Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feat(ngModelOptions): support catch-all ("*") debounce settings #15412

Closed

Conversation

petebacondarwin
Copy link
Member

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

feat

What is the current behavior? (You can also link to an open issue here)

the default key acts as a catch all for debounce events but this prevents one from being able to set a different debounce value for default than for other unspecified events.

What is the new behavior (if this is a feature change)?

the new * key acts as a catch all for unspecified events

Does this PR introduce a breaking change?

No!
If you do not use * as a key then the behaviour is unchanged.

Please check if the PR fulfills these requirements

Other information:

This change enables the use of a "*" key in the debounce setting of
ngModelOptions, which will set the debounce value for all events that
do not have an explicit value.

Closes #15411

This change enables the use of a `"*"` key in the `debounce` setting of
`ngModelOptions`, which will set the debounce value for all events that
do not have an explicit value.

Closes angular#15411
@petebacondarwin
Copy link
Member Author

Closing as we would rather have BC and not allow falling back to default

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(ngModelOptions): support for easily debouncing default only
1 participant