Apply bug fixes from Noteforms (#341)
* rename const emits to emit * auth bug fixes * refactor page meta * fix file input empty ref * setProperties working_form store * add form creator to form list --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -175,7 +175,7 @@ export default {
|
||||
}
|
||||
},
|
||||
openFileUpload () {
|
||||
if (this.disabled) return
|
||||
if (this.disabled || !this.$refs['actual-input']) return
|
||||
this.$refs['actual-input'].click()
|
||||
},
|
||||
manualFileUpload (e) {
|
||||
|
||||
@@ -13,10 +13,10 @@ const props = defineProps({
|
||||
modelValue: { type: Boolean, default: false },
|
||||
disabled: { type: Boolean, default: false }
|
||||
})
|
||||
const emits = defineEmits(['update:modelValue'])
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
|
||||
const onClick = () => {
|
||||
if (props.disabled) return
|
||||
emits('update:modelValue', !props.modelValue)
|
||||
emit('update:modelValue', !props.modelValue)
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -71,7 +71,7 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const emits = defineEmits(['close'])
|
||||
const emit = defineEmits(['close'])
|
||||
|
||||
useHead({
|
||||
bodyAttrs: {
|
||||
@@ -152,7 +152,7 @@ const onLeave = (el, done) => {
|
||||
|
||||
const close = () => {
|
||||
if (props.closeable) {
|
||||
emits('close')
|
||||
emit('close')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ const props = defineProps({
|
||||
modelValue: {type: Boolean},
|
||||
maxHeight: {type: Number, default: 200},
|
||||
})
|
||||
const emits = defineEmits(['click-away'])
|
||||
const emit = defineEmits(['click-away'])
|
||||
|
||||
const motion = ref(null)
|
||||
const collapsible = ref(null)
|
||||
@@ -47,6 +47,6 @@ const onLeave = (el, done) => {
|
||||
}
|
||||
|
||||
const onClickAway = (event) => {
|
||||
emits('click-away', event)
|
||||
emit('click-away', event)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user