@@ -5,7 +5,7 @@ import { querySelector } from 'query-selector-shadow-root';
55import rgba from 'rgba-convert' ;
66import { hex , score } from 'wcag-contrast' ;
77
8- import { getDocument , getExperimentalMode , Log } from './dev.utils' ;
8+ import { getDevMode , getDocument , getExperimentalMode , Log } from './dev.utils' ;
99
1010import type { Stringified } from '../types/common' ;
1111import { devHint } from './a11y.tipps' ;
@@ -110,7 +110,7 @@ export const setState = <T>(component: Generic.Element.Component, propName: stri
110110 * Muss erstmal in sync bleiben, da sonst der
111111 * Tooltip nicht korrekt ausgerichtet wird.
112112 */
113- // if (component.hydrated === true || processEnv !== 'test') {
113+ // if (component.hydrated === true || runtimeMode !== 'test') {
114114 // clearTimeout(component.timeout as NodeJS.Timeout);
115115 // component.timeout = setTimeout(() => {
116116 // clearTimeout(component.timeout as NodeJS.Timeout);
@@ -159,6 +159,10 @@ export function watchValidator<T>(
159159 value ?: T ,
160160 options : WatchOptions = { } ,
161161) : void {
162+ if ( ! getDevMode ( ) ) {
163+ setState ( component , propName , value ?? ( options . defaultValue as T ) , options . hooks ) ;
164+ return ;
165+ }
162166 if ( validationFunction ( value ) ) {
163167 /**
164168 * Triff zu, wenn der Wert VALIDE ist.
0 commit comments