Skip to content

Commit

Permalink
prevent constant reopen of slideout
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Sep 19, 2023
1 parent 69a76a6 commit a2916f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/templates/_field-settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
});
});
slideout.on('close', () => {
if (selectize.lastValidValue === '__add__') {
selectize.lastValidValue = '';
}
selectize.focus();
});
}
Expand Down

0 comments on commit a2916f6

Please sign in to comment.