-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
CKEDITOR.ui.dialog.checkbox.setValue()
should be chainable, but it actually isn't
#5135
Comments
I found the method source at ckeditor4/plugins/dialogui/plugin.js Line 1201 in 5fe0590
(By the way, the documentation's "View Source" link for the checkbox's |
The radio button version of If I'm understanding the code correctly, most of the form fields rely on the prototype version of I think the checkbox and radio classes' overridden methods are deliberately not calling the prototype version of |
All that said, the obvious workaround I'm using right now is to simply un-chain the two methods:
|
Hi, @LordPachelbel Thank you for your report and investigation. Like you said, adding
If you want and have time, I encourage you to create a pull request with a fix for this issue. We will try to help in case you encounter any problems. |
CKEDITOR.ui.dialog.checkbox.setValue()
is chainable, but it actually isn't
CKEDITOR.ui.dialog.checkbox.setValue()
is chainable, but it actually isn't CKEDITOR.ui.dialog.checkbox.setValue()
should be chainable, but it actually isn't
Closed in #5241 |
The documentation says
CKEDITOR.ui.dialog.checkbox.setValue()
is a chainable method, just like all of the the otherCKEDITOR.ui.dialog.*.setValue()
methods for the other form field types, but when I try to use it as a chainable method I get an "Uncaught TypeError" exception in the console.Here's my
onChange
handler for a select box in a dialog which messes with some other select boxes and a checkbox; it has been stripped down to just the relevant portions of the code:I added some console debug statements just above the line that causes the exception:
And here is the result:
Because there's no
return this
in the checkbox's version of the method, it's not actually chainable.The text was updated successfully, but these errors were encountered: