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
minor #1367 [live-component docs] Rearrange information about using custom Stimul… (srich387)
This PR was merged into the 2.x branch.
Discussion
----------
[live-component docs] Rearrange information about using custom Stimul…
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Issues | n/a
| License | MIT
In the section 'Working with the Component in JavaScript', the preamble mentions that you can create a custom Stimulus controller, and attach it to or put it around the root component element, in order to control its behaviour.
How to attach a custom controller is, however, only explained further down in the subsection 'Adding a Stimulus Controller to your Component Root Element'. This subsection is currently buried beneath an intervening subsection on a different topic, 'JavaScript Component Hooks', making it easy for a reader to overlook.
I have therefore swapped these two subsections around to improve their logical flow.
It is especially important that this information is presented clearly because it has caused confusion in the past; see e.g. #687.
Commits
-------
c8113e0 [live-component docs] Rearrange information about using custom Stimulus controllers
0 commit comments