Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputNumber throws error if emptied #429

Closed
Rakasch opened this issue Aug 7, 2020 · 0 comments
Closed

InputNumber throws error if emptied #429

Rakasch opened this issue Aug 7, 2020 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Rakasch
Copy link
Contributor

Rakasch commented Aug 7, 2020

steps to reproduce:

  1. focus the InputNumber field (it should have some value in it)
  2. hit the "end" key
  3. press "shift+pos1" to mark the value
  4. press "Del"

it will throw an error in console window.

Chrome-Error

chunk-vendors.8ef82b9e.js:7 
TypeError: Cannot set property 'value' of undefined
    at a.onInput (app.5c814089.js:1)
    at input (app.5c814089.js:1)
    at ne (chunk-vendors.8ef82b9e.js:7)
    at a.n (chunk-vendors.8ef82b9e.js:7)
    at ne (chunk-vendors.8ef82b9e.js:7)
    at a.An.t.$emit (chunk-vendors.8ef82b9e.js:7)
    at input (app.5c814089.js:1)
    at ne (chunk-vendors.8ef82b9e.js:7)
    at HTMLInputElement.n (chunk-vendors.8ef82b9e.js:7)
    at HTMLInputElement.Ki.o._wrapper (chunk-vendors.8ef82b9e.js:7)

FireFox-Error

TypeError: e.target is undefined
    onInput https://www.primefaces.org/primevue/showcase/js/app.5c814089.js:1
    input https://www.primefaces.org/primevue/showcase/js/app.5c814089.js:1
    ne https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
    n https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
    ne https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
    $emit https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
    input https://www.primefaces.org/primevue/showcase/js/app.5c814089.js:1
    ne https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
    n https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
    _wrapper https://www.primefaces.org/primevue/showcase/js/chunk-vendors.8ef82b9e.js:7
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 26, 2020
@cagataycivici cagataycivici added this to the 2.0.8 milestone Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants