fix #1780: custom icon selection issue

This commit is contained in:
antelle 2021-04-29 14:16:39 +02:00
parent e4fa4cc413
commit 09fe1a4649
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,12 @@ class IconSelectView extends View {
return url;
}
selectIcon() {
selectIcon(e) {
const btn = e.target.closest('.icon-select__icon-select');
if (btn.classList.contains('icon-select__icon--custom-selected')) {
return;
}
this.$el.find('.icon-select__file-input').click();
}