Upload folder using huggingface_hub
Browse files
6.13.0/dropdown/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "@gradio/dropdown",
|
| 3 |
-
"version": "0.
|
| 4 |
"description": "Gradio UI packages",
|
| 5 |
"type": "module",
|
| 6 |
"author": "",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "@gradio/dropdown",
|
| 3 |
+
"version": "0.12.0",
|
| 4 |
"description": "Gradio UI packages",
|
| 5 |
"type": "module",
|
| 6 |
"author": "",
|
6.13.0/dropdown/shared/Multiselect.svelte
CHANGED
|
@@ -168,7 +168,10 @@
|
|
| 168 |
}
|
| 169 |
}
|
| 170 |
if (e.key === "Backspace" && input_text === "") {
|
| 171 |
-
|
|
|
|
|
|
|
|
|
|
| 172 |
}
|
| 173 |
if (selected_indices.length === gradio.props.max_choices) {
|
| 174 |
show_options = false;
|
|
|
|
| 168 |
}
|
| 169 |
}
|
| 170 |
if (e.key === "Backspace" && input_text === "") {
|
| 171 |
+
const new_indices = selected_indices.slice(0, -1);
|
| 172 |
+
gradio.props.value = new_indices.map((index) =>
|
| 173 |
+
typeof index === "number" ? choices_values[index] : index
|
| 174 |
+
);
|
| 175 |
}
|
| 176 |
if (selected_indices.length === gradio.props.max_choices) {
|
| 177 |
show_options = false;
|