Skip to content

Add useDebounce hook and timeoutOnChange for TextField #3365

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 3 commits into from
Nov 25, 2024

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

Add useDebounce hook and timeoutOnChange for TextField

Changelog

Add useDebounce hook
TextField - add timeoutOnChange to allow debouncing of error handling

Additional info

Ticket 4497

@M-i-k-e-l M-i-k-e-l added this to the Docs milestone Nov 7, 2024
@M-i-k-e-l M-i-k-e-l requested a review from ethanshar November 7, 2024 09:56
@@ -64,6 +64,7 @@
},
{"name": "validateOnStart", "type": "boolean", "description": "Should validate when the TextField mounts"},
{"name": "validateOnChange", "type": "boolean", "description": "Should validate when the TextField value changes"},
{"name": "timeoutOnChange", "type": "number", "description": "Add a debounce timeout when sending validateOnChange"},
Copy link
Collaborator

Choose a reason for hiding this comment

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

the name is misleading it sounds like it will debounce the onChange callback when typing
I would rename to validationDebounceTime

@ethanshar ethanshar assigned M-i-k-e-l and unassigned ethanshar Nov 8, 2024
@M-i-k-e-l M-i-k-e-l assigned ethanshar and unassigned M-i-k-e-l Nov 10, 2024
@M-i-k-e-l M-i-k-e-l requested a review from ethanshar November 10, 2024 09:13
@M-i-k-e-l M-i-k-e-l enabled auto-merge (squash) November 25, 2024 08:43
@M-i-k-e-l M-i-k-e-l merged commit f0b1dee into master Nov 25, 2024
1 check passed
@M-i-k-e-l M-i-k-e-l deleted the feat/use-debounce-and-timeout-on-change branch November 25, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants