Describe the bug
Given a very basic SMUI number input defined like:
<Textfield bind:value label="Quantity" type="number" input$name="quantity"/>
<script>
import Textfield from '@smui/textfield';
let value = '';
</script>
Pressing delete or backspace using the keyboard causes SMUI to throw:
The specified value "NaN" cannot be parsed, or is out of range.
SMUI throws at WARN level and, in this case, twice each time the value is cleared by the user.
Describe the bug Given a very basic SMUI number input defined like:
Pressing delete or backspace using the keyboard causes SMUI to throw:
SMUI throws at WARN level and, in this case, twice each time the value is cleared by the user.
To Reproduce Steps to reproduce the behavior:
Expected behavior SMUI does not attempt to parse
NaN
unless the field value is explicitly set toNaN
in userland.Screenshots
Desktop (please complete the following information):
Additional context I believe this is related to #40 which was closed.