1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

toolbox: reset if div already exists

fix issues where selection is made on multiples canvases
This commit is contained in:
Gabriel Poma 2025-07-02 12:58:11 +02:00
commit b7ef7218c9

View file

@ -1291,6 +1291,10 @@ const toolBox = (function () {
}
function init(el) {
if (_elToolbox) {
this.reset()
}
_elSelected = el
_elToolbox = document.createElement('div')