@alfalab/core-components-input
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -72,7 +72,9 @@ 'use strict'; | ||
var handleInputFocus = React.useCallback(function (event) { | ||
setFocused(true); | ||
if (!readOnly) { | ||
setFocused(true); | ||
} | ||
if (onFocus) { | ||
onFocus(event); | ||
} | ||
}, [onFocus]); | ||
}, [onFocus, readOnly]); | ||
var handleInputBlur = React.useCallback(function (event) { | ||
@@ -79,0 +81,0 @@ setFocused(false); |
@@ -71,7 +71,9 @@ 'use strict'; | ||
var handleInputFocus = React.useCallback(function (event) { | ||
setFocused(true); | ||
if (!readOnly) { | ||
setFocused(true); | ||
} | ||
if (onFocus) { | ||
onFocus(event); | ||
} | ||
}, [onFocus]); | ||
}, [onFocus, readOnly]); | ||
var handleInputBlur = React.useCallback(function (event) { | ||
@@ -78,0 +80,0 @@ setFocused(false); |
@@ -62,7 +62,9 @@ import React, { useRef, useState, useCallback, Fragment } from 'react'; | ||
var handleInputFocus = useCallback(function (event) { | ||
setFocused(true); | ||
if (!readOnly) { | ||
setFocused(true); | ||
} | ||
if (onFocus) { | ||
onFocus(event); | ||
} | ||
}, [onFocus]); | ||
}, [onFocus, readOnly]); | ||
var handleInputBlur = useCallback(function (event) { | ||
@@ -69,0 +71,0 @@ setFocused(false); |
@@ -21,7 +21,9 @@ import React, { useRef, useState, useCallback, Fragment } from 'react'; | ||
const handleInputFocus = useCallback((event) => { | ||
setFocused(true); | ||
if (!readOnly) { | ||
setFocused(true); | ||
} | ||
if (onFocus) { | ||
onFocus(event); | ||
} | ||
}, [onFocus]); | ||
}, [onFocus, readOnly]); | ||
const handleInputBlur = useCallback((event) => { | ||
@@ -28,0 +30,0 @@ setFocused(false); |
{ | ||
"name": "@alfalab/core-components-input", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "", | ||
@@ -25,4 +25,3 @@ "keywords": [], | ||
"react-merge-refs": "^1.1.0" | ||
}, | ||
"gitHead": "2cd9a78cfd6e939d2efc48e4ef8092aa96e9e99b" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1982
91937
22