feat: add restore on backspace plugin for tom select

This commit is contained in:
imperosol 2024-12-07 13:38:31 +01:00
parent 6416de237f
commit b06a06f50c

View File

@ -67,6 +67,8 @@ export class AutoCompleteSelectBase extends inheritHtmlElement("select") {
remove_button: { remove_button: {
title: gettext("Remove"), title: gettext("Remove"),
}, },
// biome-ignore lint/style/useNamingConvention: this is required by the api
restore_on_backspace: {}
}, },
persist: false, persist: false,
maxItems: this.node.multiple ? this.max : 1, maxItems: this.node.multiple ? this.max : 1,