Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #1367 [live-component docs] Rearrange information about using c…
…ustom 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
- Loading branch information