Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-focus-lock

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-focus-lock - npm Package Compare versions

Comparing version 2.9.2 to 2.9.3

11

dist/cjs/AutoFocusInside.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc