Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-luger committed Apr 24, 2024
1 parent 65a7f36 commit 3e7c65e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function FlipRestrictionListEntry(props: Props) {
multiple={false}
className={styles.multiSearch}
onChange={(items, text) => {
// If the user only deletes part of the text, we don't want to remove the item (and therefore rerender the entry)
if (items.length === 0 && text != '') return

let newItem: Item | undefined =
Expand Down

0 comments on commit 3e7c65e

Please sign in to comment.