diff --git a/src/lib/teact/teact-dom.ts b/src/lib/teact/teact-dom.ts index c2b40c186..57d3e469a 100644 --- a/src/lib/teact/teact-dom.ts +++ b/src/lib/teact/teact-dom.ts @@ -436,7 +436,9 @@ function setAttribute(element: HTMLElement, key: string, value: any) { element.className = value; // An optimization attempt } else if (key === 'value') { - (element as HTMLInputElement).value = value; + if ((element as HTMLInputElement).value !== value) { + (element as HTMLInputElement).value = value; + } } else if (key === 'style') { element.style.cssText = value; } else if (key === 'dangerouslySetInnerHTML') {