dropdown.js: what is `hasButtonTarget`?
MaffooClock opened this issue · comments
In dropdown.js, the connect()
and disconnect()
methods perform a conditional action based on this.hasButtonTarget
, but it doesn't appear to be defined nor used anywhere, and therefore seems to have no purpose.
tailwindcss-stimulus-components/src/dropdown.js
Lines 41 to 43 in c29ad85
tailwindcss-stimulus-components/src/dropdown.js
Lines 49 to 51 in c29ad85
Is this extra cruft that should be removed?
Stimulus defines those automatically for targets. https://stimulus.hotwired.dev/reference/targets#properties