JavaScript Удалить фокус с кнопки
var element = document.getElementById('btnBuild');
element.setAttribute("disabled", "disabled");
Ganz404
var element = document.getElementById('btnBuild');
element.setAttribute("disabled", "disabled");
// Use focus() && blur() to add or remove focus.
import { useRef } from "react"
const inputRef = useRef()
// To remove focus: inputRef.current.blur()
// To focus: inputRef.current.focus()
<input ref='inputRef' {...value} />