ExtraParameters are swallowed in trigger(click) for checkboxes #4139
It's impossible to pass extraParameters for checkbox click handlers.
Duplicate of #2768
Source of error:
I did not have time to look into the full history of why this was added but it does not seem right to me. If you want to make sure checked state is set consistently, do so explicitly.
Link to test case
What do you expect to happen?
"Hello, world" to be displayed, using extraParameters.
What actually happens?
ExtraParameters are discarded.
The text was updated successfully, but these errors were encountered:
Thanks for the report.
There is an old @gibson042's PR that fixes it (#1367) but it's quite large so we were holding off on accepting it. Since we plan a big event refactor in jQuery 4 that will most likely make more use of the native event system, we need to see how feasible passing data is in this new model so that we don't add it only to revert it shortly thereafter.
Should we leave this issue open until we figure out what the story for jQuery 4 is? This is getting re-reported a lot compared to other issues so people are really running into this frequently.
We can document that it doesn't work, or even deprecate and remove it eventually, but I suspect the people using it have discovered some code snippet elsewhere on the internet that uses it. @minj where/how did you learn about the
This is one of those features that I think will prevent us from leaning more heavily on native event plumbing. To get that second argument there has to be some shim between the native handler and the jQuery one.