Fix null modelValue

environments/review-front-deve-otr6gc/deployments/13419
Kasper Seweryn 2022-05-02 10:31:09 +02:00 zatwierdzone przez Georg Krause
rodzic a38d0bc516
commit 7a823282f9
3 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -6,7 +6,7 @@ import { BackendError } from '~/types'
import { useStore } from 'vuex'
interface Props {
modelValue: string
modelValue: string | null
imageClass?: string
required?: boolean
name?: string | undefined

Wyświetl plik

@ -13,8 +13,7 @@ export const install: InitModule = ({ app, store }) => {
action (text: string, value: string, $el: JQuery<HTMLElement>) {
// used to ensure focusing the dropdown and clicking via keyboard
// works as expected
const button = $el[0]
button.click()
$el[0]?.click()
// @ts-expect-error
jQuery(el).find('.ui.dropdown').dropdown('hide')
},

Wyświetl plik

@ -8,8 +8,8 @@ import useTheme from '~/composables/useTheme'
useTheme()
configureCompat({
RENDER_FUNCTION: false
// COMPONENT_V_MODEL: false
RENDER_FUNCTION: false,
COMPONENT_V_MODEL: false
})
const logger = useLogger()