InputOtp: wrong usage of inputmode #5382
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Premise: I'm not a PrimeVue user, I'm developing InputOtp for the primefaces extensions project (primefaces-extensions/primefaces-extensions#1455 primefaces-extensions/primefaces-extensions#1453) and I'm trying to keep things aligned.
While checking PrimeVue implementation, I've seen that there's a wrong usage of the
inputmode
attributeReproducer
https://primevue.org/inputotp
PrimeVue version
3.49.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Navigate to https://primevue.org/inputotp and go to the Integer Only section.
![image](https://private-user-images.githubusercontent.com/18428155/310536991-b3d116a4-da7c-4ee9-b21f-10f39b916c44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjIwMzEsIm5iZiI6MTczOTA2MTczMSwicGF0aCI6Ii8xODQyODE1NS8zMTA1MzY5OTEtYjNkMTE2YTQtZGE3Yy00ZWU5LWIyMWYtMTBmMzliOTE2YzQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAwNDIxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzMjQzZWY4MTJjOWQ0NjM2YjdlM2ZhZTRjYzAyODc3ZTgzMmEwOTBmMjhkM2ZiNGRmMDNjODkyMmUyZDY1NDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CHR_fZmZXlruknNAOorRM7IQmYs05qFhImgiKz5BGaA)
This is the rendered html:
Expected behavior
number
is not a valid value forinputmode
. It should benumeric
instead. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmodeThe text was updated successfully, but these errors were encountered: