Skip to content

Getting error when selecting autofill value in prime react input number component #1871

Closed Answered by melloware
skyworth01 asked this question in PrimeReact
Discussion options

You must be logged in to vote

@skyworth01 you can use Passthrough attributes like this...

<InputNumber  value={value1} onValueChange={(e) => setValue1(e.value)} pt={{ input: { root: { autocomplete: 'off' } } }} />

Renders this...

<span class="p-inputnumber p-component p-inputwrapper p-inputwrapper-filled" data-pc-name="inputnumber" data-pc-section="root">
<input class="p-inputnumber-input p-inputtext p-component p-filled" 
id="integeronly" 
role="spinbutton" 
type="text"
 inputmode="numeric" 
aria-valuenow="42723" 
data-pc-name="inputtext"
 data-pc-section="root" 
value="42,723" 
autocomplete="off">
</span>

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@skyworth01
Comment options

@melloware
Comment options

Answer selected by melloware
@skyworth01
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
2 participants