Skip to content

Conversation

ValJed
Copy link
Contributor

@ValJed ValJed commented Oct 1, 2025

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?

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

@ValJed ValJed force-pushed the feature-layout-widget branch from 0336e98 to eabad0e Compare October 1, 2025 16:51
Copy link
Member

@stuartromanek stuartromanek left a 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();
}
Copy link
Contributor Author

@ValJed ValJed Oct 2, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants