I have a bootstrap table with an
id defined on it.
<table id='tickets-datatable' data-id='tickets-datatable'> --- --- </table>
This table is defined as the
table target element.
Inside my controller, when I try to access the ID of this table,
I can access this just fine using the Data API that stimulus provides
tableTarget.dataset.id = 'tickets-datatable'
But, what doesn’t make sense to me is
tableTarget.id = '' shouldn’t this also be returning the id of the table since I already defined the
id on table?
Please let me know if you need more information. Appreciate the help!