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:
Favour Olayinka
2024-03-12 12:48:51 +01:00
committed by GitHub
parent 18afd44664
commit 478b68074d
10 changed files with 43 additions and 25 deletions

View File

@@ -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')
}
}

View File

@@ -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>