mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 21:17:59 +00:00
Form input: removed superfluous dispatch
This commit is contained in:
parent
1cf89b3278
commit
99108121c3
@ -1,13 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { isDate } from '../../../../utils';
|
import { isDate } from '../../../../utils';
|
||||||
import { createEventDispatcher } from 'svelte';
|
|
||||||
import { input } from '../../../../actions';
|
import { input } from '../../../../actions';
|
||||||
|
|
||||||
export let column = {};
|
export let column = {};
|
||||||
export let value = undefined;
|
export let value = undefined;
|
||||||
export let valid = true;
|
export let valid = true;
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
|
||||||
const onValid = () => valid = true;
|
const onValid = () => valid = true;
|
||||||
const onInvalid = () => valid = false;
|
const onInvalid = () => valid = false;
|
||||||
const numericTypes = [ 'int', 'long', 'uint64', 'double', 'decimal' ];
|
const numericTypes = [ 'int', 'long', 'uint64', 'double', 'decimal' ];
|
||||||
@ -15,7 +13,6 @@
|
|||||||
let timeInput;
|
let timeInput;
|
||||||
$: type = column.inputType;
|
$: type = column.inputType;
|
||||||
$: mandatory = column.mandatory;
|
$: mandatory = column.mandatory;
|
||||||
$: dispatch('input', value);
|
|
||||||
|
|
||||||
$: if (value === undefined) {
|
$: if (value === undefined) {
|
||||||
dateInput && (dateInput.value = undefined);
|
dateInput && (dateInput.value = undefined);
|
||||||
|
Loading…
Reference in New Issue
Block a user