mediacube-ui 0.1.410 → 0.1.411
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.411](https://github.com/MediaCubeCo/mcui/compare/v0.1.410...v0.1.411) (2025-09-17)
|
|
6
|
+
|
|
5
7
|
### [0.1.410](https://github.com/MediaCubeCo/mcui/compare/v0.1.409...v0.1.410) (2025-09-16)
|
|
6
8
|
|
|
7
9
|
### [0.1.409](https://github.com/MediaCubeCo/mcui/compare/v0.1.408...v0.1.409) (2025-09-16)
|
package/package.json
CHANGED
|
@@ -686,10 +686,12 @@ export default {
|
|
|
686
686
|
case 'amount_format':
|
|
687
687
|
case 'num': {
|
|
688
688
|
this.is_backspace = e.key?.match(/Backspace/)
|
|
689
|
+
const is_space = e.code?.match(/Space/)
|
|
690
|
+
|
|
689
691
|
const excluded_symbols = ['.', ',']
|
|
690
692
|
const is_excluded_symbol = excluded_symbols.includes(e.key)
|
|
691
693
|
|
|
692
|
-
if (isNaN(+e.key) && !e.key?.match(/Arrow|Backspace|\.,/) && !is_excluded_symbol) {
|
|
694
|
+
if ((isNaN(+e.key) && !e.key?.match(/Arrow|Backspace|\.,/) && !is_excluded_symbol) || is_space) {
|
|
693
695
|
e.preventDefault()
|
|
694
696
|
}
|
|
695
697
|
|