Skip to content

Commit 3ea431e

Browse files
authored
Fix SelectSearch for user source user and node explorer search. (baserow#4851)
* Fix a nuxt3 bug which prevented SelectSearch from working correctly. * Lint fix
1 parent 489ac91 commit 3ea431e

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Resolved a bug which prevented user source users from being searched.",
4+
"issue_origin": "github",
5+
"issue_number": 4850,
6+
"domain": "builder",
7+
"bullet_points": [],
8+
"created_at": "2026-02-23"
9+
}

web-frontend/modules/core/components/SelectSearch.vue

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<div class="select__search">
33
<i class="select__search-icon iconoir-search"></i>
44
<input
5-
:value="value"
5+
:value="currentValue"
66
type="text"
77
class="select__search-input"
88
v-bind="$attrs"
99
:placeholder="placeholder || $t('action.search')"
10-
@input="$emit('input', $event.target.value)"
10+
@input="emitChange($event.target.value)"
1111
/>
1212
</div>
1313
</template>
@@ -18,15 +18,29 @@ export default {
1818
props: {
1919
value: {
2020
type: String,
21-
required: false,
22-
default: null,
21+
default: undefined,
22+
},
23+
modelValue: {
24+
type: String,
25+
default: undefined,
2326
},
2427
placeholder: {
2528
type: String,
2629
required: false,
2730
default: '',
2831
},
2932
},
30-
emits: ['input'],
33+
emits: ['input', 'update:modelValue'],
34+
computed: {
35+
currentValue() {
36+
return this.modelValue !== undefined ? this.modelValue : this.value
37+
},
38+
},
39+
methods: {
40+
emitChange(newValue) {
41+
this.$emit('input', newValue)
42+
this.$emit('update:modelValue', newValue)
43+
},
44+
},
3145
}
3246
</script>

0 commit comments

Comments
 (0)