use of createRef instead of not working { corrent: xxx }

This commit is contained in:
Jan Prochazka
2021-03-17 18:20:26 +01:00
parent 321d5d71de
commit 9c7df42948
9 changed files with 73 additions and 39 deletions

View File

@@ -12,9 +12,9 @@
dispatch('click', $values);
}
submitActionRef.current = () => {
submitActionRef.set(() => {
handleClick();
};
});
</script>
<FormStyledButton type="submit" on:click={handleClick} {...$$props} />