The autoComplete in the TextBox.jsx is now turned off if the prop is set
This commit is contained in:
@ -7,7 +7,7 @@ export const TextBox = (props) => {
|
||||
return (
|
||||
<div className="textbox-wrapper" ref={props.useRef} onAnimationEnd={handleAnimation}>
|
||||
<input className="textbox-input" placeholder={props.placeholder} value={props.value}
|
||||
onChange={props.onUpdate} type={props.type || "text"} autoComplete={props.autoComplete}/>
|
||||
onChange={props.onUpdate} type={props.type || "text"} autoComplete={props.autoComplete} data-form-type={props.autoComplete === "off" ? "other" : "" }/>
|
||||
{props.icon && <FontAwesomeIcon icon={props.icon} className="textbox-icon"/>}
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user