-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
BUG: setStyle
& setComponents
options parameter not taken into account
#3176
Comments
setStyle
& setComponents
options parameter not taken in accountsetStyle
& setComponents
options parameter not taken into account
Unfortunately, due to the bad initial naming, So, in the next release, the thing should work as you expect with the new ps. as always, thanks for your help ❤️ |
Hello @artf ! I'm sorry to reopen this issue but the Redoing the steps above, the "Stored ..." log still appears while calling I'm seeing the fixed I didn't look deeper into this so I couldn't identify why the issue persists, but let me know if you want me to :) Everything works fine with |
Thanks @mcottret the fix is ready for the next release |
Version: 0.16.30
Are you able to reproduce the bug from the demo?
[x] Yes
[ ] No
Steps to reproduce:
editor.setComponents('', {avoidStore: true});
editor.setStyle('', {avoidStore: true});
What is the expected behavior?
The
options
parameter should be taken into account. Passing theavoidStore
option totrue
tosetStyle
&setComponents
should prevent the update event from triggering.What is the current behavior?
The
options
parameter is not taken into account. Passing theavoidStore
option has no effect and an update event is still triggered.Proposed solution:
I'm sorry I missed on this with the previous PR (for this issue), but there still seems to be 2 problems:
opt
object is not passed down to theclear
&remove
calls forsetComponents
, causing theavoidStore
problem described above.handleChanges
handler call signature does not match the one of theadd
&remove
events: missing the 2ndcollection
parameter (which causes misreading of theopts
parameter).As always, I'd be happy to take care of the PR if this looks good to you !
Are you able to attach screenshots, screencasts or a live demo?
[x] Yes (attach)
[ ] No
The text was updated successfully, but these errors were encountered: