Why placeholder is visible, when value is empty string?

Viewed 29

docs days: The short hint is displayed in the input field before the user enters a value.

but empty string is filled

    ) : (
        <input
            className={'input-text'}
            value={value}
            onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
                onChange(e.target.value)
            }}
            onBlur={(e: React.FocusEvent<HTMLInputElement>) => {
                onBlur(e.target.value)
            }}
            disabled={o?.scope?.range != 'all' && !authnRes?.data?.isTiketAdmin}
            placeholder="pl. info@email.hu"
        />
    )
0 Answers
Related