rax-textinput
Advanced tools
+1
-0
@@ -6,2 +6,3 @@ # Changelog | ||
| - `defaultValue` will only render at first time, in order to avoid that a controlled input can't be cleared | ||
| - Support show value when value is number 0 in non-control mode | ||
@@ -8,0 +9,0 @@ ## 1.4.1 |
+2
-2
@@ -96,4 +96,4 @@ import { createCondition as __create_condition__ } from "babel-runtime-jsx-plus"; | ||
| * Because number 0 should be recognized as valid input too | ||
| * @param val | ||
| * @returns | ||
| * @param val | ||
| * @returns | ||
| */ | ||
@@ -100,0 +100,0 @@ |
+2
-2
@@ -107,4 +107,4 @@ "use strict"; | ||
| * Because number 0 should be recognized as valid input too | ||
| * @param val | ||
| * @returns | ||
| * @param val | ||
| * @returns | ||
| */ | ||
@@ -111,0 +111,0 @@ |
+1
-1
| { | ||
| "name": "rax-textinput", | ||
| "version": "1.4.2-1", | ||
| "version": "1.4.2", | ||
| "description": "TextInput component for Rax.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
+3
-4
@@ -52,4 +52,4 @@ import { | ||
| * Because number 0 should be recognized as valid input too | ||
| * @param val | ||
| * @returns | ||
| * @param val | ||
| * @returns | ||
| */ | ||
@@ -105,4 +105,3 @@ function isTruthyOrZero(val) { | ||
| useMemo(() => { | ||
| value = | ||
| isTruthyOrZero(propsValue) ? propsValue : | ||
| value = isTruthyOrZero(propsValue) ? propsValue : | ||
| isTruthyOrZero(defaultValue) ? defaultValue : ''; | ||
@@ -109,0 +108,0 @@ }, []); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
184990
0.03%4
-20%3626
-0.03%