baloise-incubator / design-system

Rebranding Version
https://baloise-design-system.vercel.app
Apache License 2.0
12 stars 3 forks source link

Claim Number Input TypeError when clearing content #1213

Closed chester23491 closed 1 year ago

chester23491 commented 1 year ago

In version 12.9.0 is a bug regarding the claim number input. When I clear the field there is a Uncaught TypeError:

main.eb93dda7.iframe.bundle.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    at _this.getInputValue (main.eb93dda7.iframe.bundle.js:2:1725681)
    at _this.onInput (main.eb93dda7.iframe.bundle.js:2:1726539)
    at HTMLInputElement.onInput (main.eb93dda7.iframe.bundle.js:2:1733542)
  1. Navigate to the Claim Number Input and open the browser console (https://baloise-design-system.vercel.app/?path=/docs/components-form-input--claim-number-input).
  2. Enter a number (e.g. 1)
  3. Remove/Clear input
  4. Check the error in the console

This issue was already solved in the old design system: https://github.com/baloise/design-system/issues/648