You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] html_editor: update font size selector on set tag in toolbar
In website builder:
1. Select text
2. Change heading type in the toolbar
-> the font size selector in the toolbar is blank.
This is because the font size input is in an iframe, and a chain of
events triggered by changing the heading type (`setTag`) leads to the
iframe's document to be re-rendered. This only happens in the website
builder because of a call to `updateContainers` as a step_added handler
that triggers the `change_current_options_containers_listeners`.
These listeners are triggered because `setTag` replaced the block which
was the target of the `BuilderOptionsPlugin` with another. The target is
not connected anymore so it was assumed we would always need to reset
the containers, but the target didn't really change, it was simply
replaced to change its tag. So this allows going through the checks to
see if updating the containers is needed before triggering the
listeners. Since in this case it isn't, they won't be and the iframe
will remain intact.
0 commit comments