mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
fix(control) add selected_display subsciption validation in TextInput
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { fade } from 'svelte/transition';
|
import { fade } from 'svelte/transition';
|
||||||
import { get_shifted_color } from '../ts/stores/ui_behavior';
|
import { get_shifted_color } from '../ts/stores/ui_behavior';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
import { selected_display_ids } from '../ts/stores/select';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
current_value = $bindable(),
|
current_value = $bindable(),
|
||||||
@@ -44,6 +45,10 @@
|
|||||||
onMount(() => {
|
onMount(() => {
|
||||||
validate_input();
|
validate_input();
|
||||||
if (focused_on_start && input_element) input_element.focus();
|
if (focused_on_start && input_element) input_element.focus();
|
||||||
|
|
||||||
|
selected_display_ids.subscribe(() => {
|
||||||
|
validate_input();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user