mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 13:07:58 +00:00
Disable spellcheck and autocomplete on all inputs
This commit is contained in:
parent
3ca561b4b4
commit
d677b825e1
@ -10,6 +10,9 @@ export default function input(node, { autofocus, type, onValid, onInvalid, manda
|
||||
mandatory: false,
|
||||
}) {
|
||||
|
||||
node.setAttribute('spellcheck', false);
|
||||
node.setAttribute('autocomplete', false);
|
||||
|
||||
const getMessage = () => {
|
||||
const checkInteger = () => (isInt(node.value) ? false : 'Value must be an integer');
|
||||
const checkNumberBoundaries = boundaries => {
|
||||
|
@ -3,7 +3,7 @@
|
||||
import Modal from '$components/modal.svelte';
|
||||
import input from '$lib/actions/input';
|
||||
import hostTree from '$lib/stores/hosttree';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { createEventDispatcher, onMount } from 'svelte';
|
||||
|
||||
export let host = {};
|
||||
export let dbKey = '';
|
||||
@ -55,7 +55,7 @@
|
||||
</label>
|
||||
<label class="field">
|
||||
<span class="label">Collection</span>
|
||||
<input type="text" bind:value={newColl} use:input />
|
||||
<input type="text" bind:value={newColl} use:input={{ autofocus: true }} />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user