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:
parent
bab65b046b
commit
b7ef7218c9
1 changed files with 4 additions and 0 deletions
|
|
@ -1291,6 +1291,10 @@ const toolBox = (function () {
|
|||
}
|
||||
|
||||
function init(el) {
|
||||
if (_elToolbox) {
|
||||
this.reset()
|
||||
}
|
||||
|
||||
_elSelected = el
|
||||
|
||||
_elToolbox = document.createElement('div')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue