diff --git a/src/frontend/src/components/core/parameterRenderComponent/components/sliderComponent/index.tsx b/src/frontend/src/components/core/parameterRenderComponent/components/sliderComponent/index.tsx index 3bf71dcc8..21d90940a 100644 --- a/src/frontend/src/components/core/parameterRenderComponent/components/sliderComponent/index.tsx +++ b/src/frontend/src/components/core/parameterRenderComponent/components/sliderComponent/index.tsx @@ -216,6 +216,7 @@ export default function SliderComponent({ onKeyDown={handleKeyDown} className="relative bottom-[1px] w-full cursor-text rounded-sm bg-transparent text-center font-mono text-[0.88rem] arrow-hide" autoFocus + data-testid="slider_input" /> ) : ( { + await page.evaluate( + ({ selector, value }) => { + const inputElement = document.querySelector(selector) as HTMLInputElement; + if (inputElement) { + const prototype = Object.getPrototypeOf(inputElement); + const nativeInputValueSetter = Object.getOwnPropertyDescriptor( + prototype, + "value", + )?.set; + if (nativeInputValueSetter) { + nativeInputValueSetter.call(inputElement, value); + inputElement.dispatchEvent(new Event("input", { bubbles: true })); + } + } + }, + { selector, value }, + ); +};