|
|
|
|
@ -14,7 +14,7 @@ import {
|
|
|
|
|
} from '$libs/reactive';
|
|
|
|
|
import type { SomaFocusEvent, SomaKeyboardEvent, SomaMouseEvent, OnChangeFn } from '../../types';
|
|
|
|
|
import { KEYS, getDirectionalKeys } from '../../keyboard';
|
|
|
|
|
import { getDocument, isBrowser } from '$adom';
|
|
|
|
|
import { isBrowser } from '$adom';
|
|
|
|
|
import { isNumberString } from '../../types/guards';
|
|
|
|
|
import { useId } from '../../id';
|
|
|
|
|
import { Soma } from '../../core/soma.svelte';
|
|
|
|
|
@ -759,7 +759,7 @@ export class DateFieldInputProvider {
|
|
|
|
|
|
|
|
|
|
readonly ariaDescribedBy = $derived.by(() => {
|
|
|
|
|
if (!isBrowser) return undefined;
|
|
|
|
|
const doc = getDocument(this.opts.ref.current);
|
|
|
|
|
const doc = this.provider.soma.dom.getDocument(this.opts.ref.current);
|
|
|
|
|
const exists = doc?.getElementById(this.provider.descriptionId);
|
|
|
|
|
return exists ? this.provider.descriptionId : undefined;
|
|
|
|
|
});
|
|
|
|
|
|