1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 13:07:58 +00:00

Form input: removed superfluous dispatch

This commit is contained in:
Romein van Buren 2023-01-29 20:01:27 +01:00
parent 1cf89b3278
commit 99108121c3
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -1,13 +1,11 @@
<script>
import { isDate } from '../../../../utils';
import { createEventDispatcher } from 'svelte';
import { input } from '../../../../actions';
export let column = {};
export let value = undefined;
export let valid = true;
const dispatch = createEventDispatcher();
const onValid = () => valid = true;
const onInvalid = () => valid = false;
const numericTypes = [ 'int', 'long', 'uint64', 'double', 'decimal' ];
@ -15,7 +13,6 @@
let timeInput;
$: type = column.inputType;
$: mandatory = column.mandatory;
$: dispatch('input', value);
$: if (value === undefined) {
dateInput && (dateInput.value = undefined);