Skip to content

Commit

Permalink
Synchronise select form
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 11, 2022
1 parent eaa4a47 commit 187a787
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fastybird/web-ui-theme",
"version": "0.9.1",
"version": "0.9.2",
"description": "FastyBird basic theme & Vue components for web apps",
"keywords": [
"fastybird",
Expand Down
8 changes: 8 additions & 0 deletions src/components/forms/FbSelect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ import {
PropType,
ref,
SetupContext,
watch,
} from 'vue'
import {
Expand Down Expand Up @@ -223,6 +224,13 @@ export default defineComponent({
context.emit('change', props.modelValue)
}
watch(
(): string | number | null => props.modelValue,
(value) => {
internalValue.value = value
},
)
return {
internalValue,
isFocused,
Expand Down

0 comments on commit 187a787

Please sign in to comment.