-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Regression: Add debounce on admin users search to avoid blocking by DDP Rate Limiter #13529
Conversation
Template.adminUsers.events({ | ||
'keydown #users-filter'(e) { | ||
if (e.which === 13) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
} | ||
}, | ||
'keyup #users-filter'(e, t) { | ||
'keyup #users-filter': _.debounce((e, t) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should only the the t.filter.set()
be debounced? I wonder because the event is not having its propagation stopped nor default prevented...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sampaiodiego if we debounce this function too, for some reason the event is not prevented, and the form is submitted.
No description provided.