Co-authored-by: Domenico <dom@digitaltroop.net>
This commit is contained in:
Domenico Nusca 2023-04-19 18:53:26 +02:00 committed by GitHub
parent 50f08e6143
commit 7dcb7768b2
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
*/
import classnames from 'classnames';
import { forwardRef, useState } from '@wordpress/element';
import { decodeEntities } from '@wordpress/html-entities';
import type { InputHTMLAttributes } from 'react';
/**
@ -68,7 +69,7 @@ const TextInput = forwardRef< HTMLInputElement, TextInputProps >(
<input
type={ type }
id={ id }
value={ value }
value={ decodeEntities( value ) }
ref={ ref }
autoCapitalize={ autoCapitalize }
autoComplete={ autoComplete }