🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

rax-textinput

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax-textinput - npm Package Compare versions

Comparing version
1.4.2-1
to
1.4.2
+1
-0
CHANGELOG.md

@@ -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 @@

@@ -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 @@

{
"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",

@@ -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 @@ }, []);