The autoComplete in the TextBox.jsx is now turned off if the prop is set

This commit is contained in:
2022-12-28 15:09:00 +01:00
parent dc7a095f73
commit b2fa2d30bc

View File

@ -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>
);