Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

remove focus from input

// 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} />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #focus #input
ADD COMMENT
Topic
Name
7+6 =