Fix focus for <b-select> shim component

This commit is contained in:
Lance Edgar 2024-06-03 10:48:59 -05:00
parent 29c9ea1a2b
commit 30238528fe

View file

@ -507,6 +507,7 @@
<%def name="make_b_select_component()"> <%def name="make_b_select_component()">
<script type="text/x-template" id="b-select-template"> <script type="text/x-template" id="b-select-template">
<o-select :name="name" <o-select :name="name"
ref="select"
v-model="orugaValue" v-model="orugaValue"
@update:model-value="orugaValueUpdated" @update:model-value="orugaValueUpdated"
:expanded="expanded" :expanded="expanded"
@ -545,6 +546,9 @@
}, },
}, },
methods: { methods: {
focus() {
this.$refs.select.focus()
},
orugaValueUpdated(value) { orugaValueUpdated(value) {
this.$emit('update:modelValue', value) this.$emit('update:modelValue', value)
this.$emit('input', value) this.$emit('input', value)