Inserted buttons data-counter value not appending
Briefly

CurrentCounter is not updating; all buttons display "1". Ensure you access the latest `toolBarDiv.dataset.buttonCounter` to track individual button injections.
While implementing a button injection mechanism, the logic must correctly update the `data-counter` attribute per unique `toolBarDiv` instance to ensure accurate counting.
Read at SitePoint Forums | Web Development & Design Community
[
|
]