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
refactor(command): split dialog controller, use Stimulus outlets
Introduce ruby-ui--command-dialog controller for the trigger/template
wrapper and keep ruby-ui--command for the cloned dialog instance. The
trigger declares a ruby-ui--command outlet matched by a marker attribute
on the cloned dialog wrapper. Outlet connect/disconnect callbacks track
the active dialog, replacing the static class field and avoiding both
querySelector and same-identifier dual-personality controller code.
- New: command_dialog_controller.js (trigger + content target + outlet)
- Strip open/openValue/content target from command_controller.js
- Rename trigger actions to ruby-ui--command-dialog#open
- Add ruby_ui__command_dialog_instance marker on cloned dialog
0 commit comments