hotwired / stimulus

A modest JavaScript framework for the HTML you already have

Home Page:https://stimulus.hotwired.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't route its own methods to events fired by initialize.

NakajimaTakuya opened this issue · comments

I noticed that it is not possible to route its own methods to events fired by initialize. (In the case of synchronous processing).

However, I also intuited that such a situation is not surprising considering that it is an event in the special process of initialize.

With that impression, I personally would be glad to see this behavior described in the documentation.

Below is the reproduced code.

https://codepen.io/Takuya-Nakajima/pen/ZEZLXWZ

(Sorry if I am just missing something in the documentation.)