-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Mat autocomplete input change event bleeds 'event' object #36035
Comments
After a quick scan it looks like a duplicate of #4059 where we've got a conflict between the |
Might be connected to this issue, a button click handler also does the same thing:
Also bleeds an "event" variable in handler:
See this Stackblitz example. |
@KissBalazs I'm sorry but it is not clear from your stackblitz what is the issue that you are trying to illustrate... Is it about "most of the time" this exists here."??? If you are unsure if your issue is different from the one discussed here, please open a new issue but follow the issue template when doing so (most importantly we need a reproduce scenario that shows broken / non-working scenario). |
@pkozlowski-opensource sorry for the confusion, I have cleared up my comment. |
@KissBalazs thnx for the additional clarifications! You are totally right to be confused as to why one can access The long story short that browsers will expose Going to close this one as it is not specific to Angular but rather to how browsers work. But hey, totally see how this could be confusing! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 bug report
Affected Package
The issue is caused by package @angular/material 9.1.2
Is this a regression?
not sure.
Description
The event
(change)
will pass down an "event" object to the handler, even if it's not specified as a parameter.🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-x78zg6
see the
autocomplete-overview-example.html
lines 6-7, and their correspoding hander onautocomplete-verview-example.ts
lines 65-72.🔥 Exception or Error
console.log shows that we have an "event" object, although it is not defined in the function parameter list.
🌍 Your Environment
Angular Version:
see stackblitz dependencies.
The text was updated successfully, but these errors were encountered: