forked from coracle/flotilla
Fix more stuff, particularly event handlers
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
import {makeEditor} from "@app/editor"
|
||||
import {pushToast} from "@app/toast"
|
||||
|
||||
let {url, event, onClose, onSubmit} = $props()
|
||||
const {url, event, onClose, onSubmit} = $props()
|
||||
|
||||
const uploading = writable(false)
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<Button
|
||||
data-tip="Add an image"
|
||||
class="tooltip tooltip-left absolute bottom-1 right-2"
|
||||
on:click={$editor.commands.selectFiles}>
|
||||
onclick={$editor.commands.selectFiles}>
|
||||
{#if $uploading}
|
||||
<span class="loading loading-spinner loading-xs"></span>
|
||||
{:else}
|
||||
@@ -57,7 +57,7 @@
|
||||
</Button>
|
||||
</div>
|
||||
<ModalFooter>
|
||||
<Button class="btn btn-link" on:click={onClose}>Cancel</Button>
|
||||
<Button class="btn btn-link" onclick={onClose}>Cancel</Button>
|
||||
<Button type="submit" class="btn btn-primary">Post Reply</Button>
|
||||
</ModalFooter>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user