Fix null modelValue
This commit is contained in:
parent
a38d0bc516
commit
7a823282f9
|
@ -6,7 +6,7 @@ import { BackendError } from '~/types'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
modelValue: string
|
modelValue: string | null
|
||||||
imageClass?: string
|
imageClass?: string
|
||||||
required?: boolean
|
required?: boolean
|
||||||
name?: string | undefined
|
name?: string | undefined
|
||||||
|
|
|
@ -13,8 +13,7 @@ export const install: InitModule = ({ app, store }) => {
|
||||||
action (text: string, value: string, $el: JQuery<HTMLElement>) {
|
action (text: string, value: string, $el: JQuery<HTMLElement>) {
|
||||||
// used to ensure focusing the dropdown and clicking via keyboard
|
// used to ensure focusing the dropdown and clicking via keyboard
|
||||||
// works as expected
|
// works as expected
|
||||||
const button = $el[0]
|
$el[0]?.click()
|
||||||
button.click()
|
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
jQuery(el).find('.ui.dropdown').dropdown('hide')
|
jQuery(el).find('.ui.dropdown').dropdown('hide')
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,8 +8,8 @@ import useTheme from '~/composables/useTheme'
|
||||||
useTheme()
|
useTheme()
|
||||||
|
|
||||||
configureCompat({
|
configureCompat({
|
||||||
RENDER_FUNCTION: false
|
RENDER_FUNCTION: false,
|
||||||
// COMPONENT_V_MODEL: false
|
COMPONENT_V_MODEL: false
|
||||||
})
|
})
|
||||||
|
|
||||||
const logger = useLogger()
|
const logger = useLogger()
|
||||||
|
|
Loading…
Reference in New Issue