<b-form-input> does not work with type="number"
See original GitHub issueI’m trying to use the <b-form-input> to edit a number, but an exception is thrown.
This is the line of code that fails:
computed: {
rowsCount: function rowsCount() {
return (this.value || '').split('\n').length;
}
}
I don’t know where the code is in this code base, but when my browser hits the rowsCount()
function, this.value
is set to the number I want to edit, however it will fail because there is no .split()
on a number.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
vue.js - BootstrapVue - Number Form Input not working in Firefox
I tried implementing this with type="number" , but it is only having an effect in Chrome, and not Firefox. The maximum number that...
Read more >Form Input | Components - BootstrapVue
Create various type inputs such as: text, password, number, url, email, search, range, date and more.
Read more ><input type="tel"> - HTML: HyperText Markup Language | MDN
Any values in the list that are not compatible with the type are not included in the suggested options. The values provided are...
Read more >Turn Off Number Input Spinners - CSS-Tricks
This is not working in FF, opera, and if i use input[type=number] { -moz-appearance: textfield; } This loose control on specific type number...
Read more >Only allow numbers in range with one decimal-Vue.js
I have a configurable validation variable that you can configure and adjust your ... <div id="app"> <b-form-input type="number" :step="0.1" v-model="value" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed, will be available in next release.
Awesome! Hey, thanks a bunch for helping me out and working on this! 😃