Thank you so much for your contribution, I had a small bug while splitting one of my files, where the copy buttom didn't work and I decided to share with you what I found from analyzing the splitter tool!
Fix undefined event variable by accepting it as a parameter and passing the button element explicitly to showCopyFeedback instead of relying on the deprecated global event object.
lines 624–632
Pass the event object to copyToClipboard so it can properly identify which button was clicked, and fix the typo copyTovenuesClipboard to copyToClipboard.
lines 587–599
Fix feedback restoration bug by storing original button state in data attributes, preventing "Copied!" from becoming the new "original" text if clicked rapidly or during an existing timeout.
Thank you so much for your contribution, I had a small bug while splitting one of my files, where the copy buttom didn't work and I decided to share with you what I found from analyzing the splitter tool!
Fix undefined
eventvariable by accepting it as a parameter and passing the button element explicitly toshowCopyFeedbackinstead of relying on the deprecated globaleventobject.lines 624–632
Pass the event object to
copyToClipboardso it can properly identify which button was clicked, and fix the typocopyTovenuesClipboardtocopyToClipboard.lines 587–599
Fix feedback restoration bug by storing original button state in data attributes, preventing "Copied!" from becoming the new "original" text if clicked rapidly or during an existing timeout.