Fixed a bug in the TextBox.jsx

This commit is contained in:
2022-12-28 03:35:20 +01:00
parent 0412341480
commit c9e25d8248

View File

@ -8,7 +8,7 @@ export const TextBox = (props) => {
<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}/>
<FontAwesomeIcon icon={props.icon} className="textbox-icon"/>
{props.icon && <FontAwesomeIcon icon={props.icon} className="textbox-icon"/>}
</div>
);
}