mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Bouton supprimer un svg n'est plus caché lorsque le svg est actif
This commit is contained in:
parent
a73b055d64
commit
7375eb298c
@ -129,14 +129,8 @@ loadingTask.promise.then(function(pdf) {
|
||||
document.querySelectorAll('.btn-svg').forEach(function(item) {
|
||||
if(input_selected && item.htmlFor == input_selected.id) {
|
||||
item.style.setProperty('cursor', 'copy');
|
||||
if(item.querySelector('.btn-svg-list-suppression')) {
|
||||
item.querySelector('.btn-svg-list-suppression').classList.add('d-none');
|
||||
}
|
||||
} else {
|
||||
item.style.removeProperty('cursor');
|
||||
if(item.querySelector('.btn-svg-list-suppression')) {
|
||||
item.querySelector('.btn-svg-list-suppression').classList.remove('d-none');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user