-
Notifications
You must be signed in to change notification settings - Fork 614
Fix focus #5086
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
base: feature-layout-widget
Are you sure you want to change the base?
Fix focus #5086
Conversation
…omponent Seem useless sinces it adds isSuppressed during focus and remove it during unfocus.
0336e98
to
eabad0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a UX perspective this seems to do all the right things in terms of switching focus among nested widgets, focusing widgets appropriately during delete/paste.
handler(widget) { | ||
if (widget.type !== '@apostrophecms/layout-column') { | ||
this.renderContent(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the issue of the rich text unfocusing because the entire area is re rendered through livre preview when typing (since before the rich text used it's own component without this mixin and now layout-widget and layout-column use this mixin with AposWidget
).
I don't thing layout-widget
and layout-column-widget
should use AposWidget
like regular widgets. I thing they should have their own basic componnent (like we did for quick image upload).
Let me know what you think.
Summary
Fix layout widget focus not working when clicking on grid component.
Fix typing in rich text re rendering all widgets around and breaking focus
Put focus stuff in widget store because was a mess
What are the specific steps to test this change?
Bugs are fixed
What kind of change does this PR introduce?
Make sure the PR fulfills these requirements: