mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
forms
This commit is contained in:
@@ -6,10 +6,15 @@
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
const { submitActionRef } = getFormContext();
|
||||
|
||||
const { values } = getFormContext();
|
||||
|
||||
function handleClick() {
|
||||
dispatch('click', $values);
|
||||
}
|
||||
|
||||
submitActionRef.current = () => {
|
||||
dispatch('click');
|
||||
handleClick();
|
||||
};
|
||||
</script>
|
||||
|
||||
<FormStyledButton type="submit" on:click {...$$props} />
|
||||
<FormStyledButton type="submit" on:click={handleClick} {...$$props} />
|
||||
|
||||
Reference in New Issue
Block a user