react-focus-lock
Advanced tools
Comparing version 2.9.2 to 2.9.3
@@ -22,6 +22,9 @@ "use strict"; | ||
/* eslint-disable react/require-default-props */ | ||
var AutoFocusInside = function AutoFocusInside(_ref) { | ||
var disabled = _ref.disabled, | ||
var _ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === void 0 ? false : _ref$disabled, | ||
children = _ref.children, | ||
className = _ref.className; | ||
_ref$className = _ref.className, | ||
className = _ref$className === void 0 ? undefined : _ref$className; | ||
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _util.inlineProp)(constants.FOCUS_AUTO, !disabled), { | ||
@@ -37,7 +40,3 @@ className: className | ||
} : {}; | ||
AutoFocusInside.defaultProps = { | ||
disabled: false, | ||
className: undefined | ||
}; | ||
var _default = AutoFocusInside; | ||
exports["default"] = _default; |
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
/* eslint-disable react/require-default-props */ | ||
import * as React from 'react'; | ||
@@ -8,5 +10,7 @@ import PropTypes from 'prop-types'; | ||
var AutoFocusInside = function AutoFocusInside(_ref) { | ||
var disabled = _ref.disabled, | ||
var _ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === void 0 ? false : _ref$disabled, | ||
children = _ref.children, | ||
className = _ref.className; | ||
_ref$className = _ref.className, | ||
className = _ref$className === void 0 ? undefined : _ref$className; | ||
return /*#__PURE__*/React.createElement("div", _extends({}, inlineProp(constants.FOCUS_AUTO, !disabled), { | ||
@@ -22,6 +26,2 @@ className: className | ||
} : {}; | ||
AutoFocusInside.defaultProps = { | ||
disabled: false, | ||
className: undefined | ||
}; | ||
export default AutoFocusInside; |
{ | ||
"name": "react-focus-lock", | ||
"version": "2.9.2", | ||
"version": "2.9.3", | ||
"description": "It is a trap! (for a focus)", | ||
@@ -104,3 +104,3 @@ "main": "dist/cjs/index.js", | ||
"@babel/runtime": "^7.0.0", | ||
"focus-lock": "^0.11.2", | ||
"focus-lock": "^0.11.5", | ||
"prop-types": "^15.6.2", | ||
@@ -107,0 +107,0 @@ "react-clientside-effect": "^1.2.6", |
@@ -85,2 +85,3 @@ <div align="left"> | ||
- `hasPositiveIndices=false` to support a focus lock behavior when any elements tabIndex greater than 0. | ||
- `crossFrame=true` enables aggressive focus capturing within iframes | ||
@@ -87,0 +88,0 @@ ### Focusing in OSX (Safari/Firefox) is strange! |
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
77976
335
1600
Updatedfocus-lock@^0.11.5