Comparing version 4.1.0 to 4.1.1
@@ -25,5 +25,5 @@ export function hasClass(node, className) { | ||
var originClass = node.className; | ||
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ''); | ||
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' '); | ||
} | ||
} | ||
} |
@@ -29,3 +29,3 @@ function hidden(node) { | ||
} | ||
return hasTabIndex; | ||
return node.isContentEditable || hasTabIndex; | ||
} | ||
@@ -32,0 +32,0 @@ } |
@@ -33,5 +33,5 @@ 'use strict'; | ||
var originClass = node.className; | ||
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ''); | ||
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' '); | ||
} | ||
} | ||
} |
@@ -39,3 +39,3 @@ 'use strict'; | ||
} | ||
return hasTabIndex; | ||
return node.isContentEditable || hasTabIndex; | ||
} | ||
@@ -42,0 +42,0 @@ } |
{ | ||
"name": "rc-util", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
63433