Automatically adjust dialog position when the virtual keyboard is displayed, and allow input from the virtual keyboard to update value bindings in Svelte textfields.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import TextField from "@smui/textfield";
|
||||
import Button, { Label } from "@smui/button";
|
||||
import { ControllerMethods } from "$lib/RegisterControllerMethods";
|
||||
import { virtualKeyboardChangeHelper } from "$lib/customActions";
|
||||
|
||||
export let open: boolean;
|
||||
export let axis = "";
|
||||
@@ -42,6 +43,7 @@
|
||||
label="Position"
|
||||
type="number"
|
||||
bind:value
|
||||
use={[[virtualKeyboardChangeHelper, (newValue) => (value = newValue)]]}
|
||||
spellcheck="false"
|
||||
variant="filled"
|
||||
style="width: 100%;"
|
||||
|
||||
Reference in New Issue
Block a user