{"_id":"react-click-outside","_rev":"320937","name":"react-click-outside","description":"A component wrapper that provides click outside detection.","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"time":{"modified":"2021-06-04T01:23:21.000Z","created":"2015-10-05T20:20:56.445Z","3.0.1":"2018-02-15T07:05:48.975Z","3.0.0":"2017-09-08T04:50:29.852Z","2.3.1":"2017-05-09T23:17:54.049Z","2.3.0":"2017-04-12T05:40:32.674Z","2.2.0":"2016-10-08T02:41:50.104Z","2.1.0":"2015-11-29T02:08:47.021Z","2.0.1":"2015-11-26T22:18:30.981Z","2.0.0":"2015-10-25T05:58:13.233Z","1.0.1":"2015-10-15T01:43:26.669Z","1.0.0":"2015-10-05T20:20:56.445Z"},"users":{"fiatjaf":true,"princetoad":true,"chrisjpatty":true,"rahulraghavankklm":true,"re8260":true,"daniel-zahariev":true,"zillding":true,"isenricho":true,"reyronald":true,"dwqs":true},"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"versions":{"3.0.1":{"name":"react-click-outside","version":"3.0.1","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"npm test && babel -d dist index.js","demo":"budo demo/app.js -- -t babelify","lint":"eslint .","test":"jest","test:ci":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel-cli":"6.26.0","babel-jest":"21.2.0","babel-plugin-transform-object-rest-spread":"6.26.0","babel-preset-env":"1.6.0","babel-preset-react":"6.24.1","babelify":"7.3.0","browserify":"14.4.0","budo":"10.0.4","create-react-class":"15.6.2","enzyme":"3.0.0","enzyme-adapter-react-16":"1.0.0","eslint":"4.8.0","eslint-config-kentor":"5.0.0","jest":"21.2.1","react":"16.0.0","react-dom":"16.0.0","react-test-renderer":"16.0.0"},"dependencies":{"hoist-non-react-statics":"^2.1.1"},"gitHead":"ff29a952267691c174a3c26e51a60553bb59f079","_id":"react-click-outside@3.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"6e77e84d2f17afaaac26dbad743cbbf909f5e24c","size":56160,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-3.0.1.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-click-outside_3.0.1_1518678348838_0.46413874282168677"},"_hasShrinkwrap":false,"publish_time":1518678348975,"_cnpm_publish_time":1518678348975},"3.0.0":{"name":"react-click-outside","version":"3.0.0","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"npm test && babel -d dist index.js","demo":"budo demo/app.js -- -t babelify","lint":"eslint .","test":"mocha --compilers js:babel-register --require test-setup","test:ci":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel-cli":"6.18.0","babel-plugin-transform-object-rest-spread":"6.26.0","babel-preset-env":"1.6.0","babel-preset-react":"6.16.0","babel-register":"6.18.0","babelify":"7.3.0","browserify":"13.1.1","budo":"9.3.0","create-react-class":"15.5.2","eslint":"3.12.2","eslint-config-kentor":"3.12.2","eslint-plugin-react":"6.8.0","expect":"1.20.2","jsdom":"9.9.1","mocha":"3.2.0","react":"15.5.4","react-dom":"15.5.4"},"dependencies":{"hoist-non-react-statics":"^2.1.1"},"gitHead":"cfb06628dc801007e3f92712ae7b8bc487946b7a","_id":"react-click-outside@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"7a69a90d31b99204ef5d509cae91f52460d6fd69","size":46819,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-3.0.0.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-click-outside-3.0.0.tgz_1504846229688_0.4123435008805245"},"directories":{},"publish_time":1504846229852,"_cnpm_publish_time":1504846229852,"_hasShrinkwrap":false},"2.3.1":{"name":"react-click-outside","version":"2.3.1","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"npm test && babel -d dist index.js","demo":"budo demo/app.js -- -t babelify","lint":"eslint .","test":"mocha --compilers js:babel-register --require test-setup","test:ci":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel-cli":"6.18.0","babel-preset-es2015":"6.18.0","babel-preset-react":"6.16.0","babel-register":"6.18.0","babelify":"7.3.0","browserify":"13.1.1","budo":"9.3.0","create-react-class":"15.5.2","eslint":"3.12.2","eslint-config-kentor":"3.12.2","eslint-plugin-react":"6.8.0","expect":"1.20.2","jsdom":"9.9.1","mocha":"3.2.0","react":"15.5.4","react-dom":"15.5.4"},"dependencies":{"hoist-non-react-statics":"^1.2.0"},"gitHead":"126219d3010a649c07057b4b395d92ac71b46912","_id":"react-click-outside@2.3.1","_shasum":"318737ebdf081a4a3bcd46825663674cbe9836eb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"318737ebdf081a4a3bcd46825663674cbe9836eb","size":44973,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-2.3.1.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-click-outside-2.3.1.tgz_1494371873784_0.15418251045048237"},"directories":{},"publish_time":1494371874049,"_cnpm_publish_time":1494371874049,"_hasShrinkwrap":false},"2.3.0":{"name":"react-click-outside","version":"2.3.0","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"npm test && babel -d dist index.js","demo":"budo demo/app.js","lint":"eslint .","test":"mocha --compilers js:babel-register --require test-setup","test:ci":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel-cli":"6.18.0","babel-preset-es2015":"6.18.0","babel-preset-react":"6.16.0","babel-register":"6.18.0","babelify":"7.3.0","browserify":"13.1.1","budo":"9.3.0","create-react-class":"15.5.2","eslint":"3.12.2","eslint-config-kentor":"3.12.2","eslint-plugin-react":"6.8.0","expect":"1.20.2","jsdom":"9.9.1","mocha":"3.2.0","react":"15.5.4","react-dom":"15.5.4"},"dependencies":{"hoist-non-react-statics":"^1.2.0"},"browserify":{"transform":["babelify"]},"gitHead":"0a443ee08778095cf19f6887821ff286808ff595","_id":"react-click-outside@2.3.0","_shasum":"928d04b0d5f622ac0c66e2d3c481db1b3cd81ace","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"928d04b0d5f622ac0c66e2d3c481db1b3cd81ace","size":45055,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-2.3.0.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-click-outside-2.3.0.tgz_1491975630668_0.9392774293664843"},"directories":{},"publish_time":1491975632674,"_cnpm_publish_time":1491975632674,"_hasShrinkwrap":false},"2.2.0":{"name":"react-click-outside","version":"2.2.0","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"npm test && babel -d dist index.js","lint":"eslint .","test":"npm run lint && mocha --compilers js:babel-register --require test-setup"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel-cli":"6.16.0","babel-preset-es2015":"6.16.0","babel-preset-react":"6.16.0","babel-register":"6.16.3","eslint":"3.7.1","eslint-config-kentor":"3.7.1","eslint-plugin-react":"6.3.0","expect":"1.20.2","jsdom":"9.6.0","mocha":"3.1.0","react":"15.3.2","react-dom":"15.3.2"},"dependencies":{"hoist-non-react-statics":"^1.2.0"},"gitHead":"a653c31717e00d43230521f52e305c08df77a892","_id":"react-click-outside@2.2.0","_shasum":"fb815517cb6144bb5e670f69e1a61d6165338a59","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.6.0","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"fb815517cb6144bb5e670f69e1a61d6165338a59","size":4185,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-2.2.0.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-click-outside-2.2.0.tgz_1475894508586_0.7310727576259524"},"directories":{},"publish_time":1475894510104,"_cnpm_publish_time":1475894510104,"_hasShrinkwrap":false},"2.1.0":{"name":"react-click-outside","version":"2.1.0","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"babel -d dist index.js","prepublish":"npm test && npm run build","lint":"eslint .","test":"npm run lint && mocha --compilers js:babel/register --require test-setup"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel":"^5.8.23","eslint":"^1.10.1","eslint-config-kentor":"^1.0.0","eslint-plugin-react":"^3.10.0","expect":"^1.13.0","jsdom":"^7.1.0","mocha":"^2.3.4","react":"^0.14.3","react-dom":"^0.14.3"},"gitHead":"ec040cd0a2d9200392a36d52d6f71fd40ed033c6","_id":"react-click-outside@2.1.0","_shasum":"2e48b1a2ef3cc365a9fc1a873e67a50337c08767","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"2e48b1a2ef3cc365a9fc1a873e67a50337c08767","size":4045,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-2.1.0.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"directories":{},"publish_time":1448762927021,"_cnpm_publish_time":1448762927021,"_hasShrinkwrap":false},"2.0.1":{"name":"react-click-outside","version":"2.0.1","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"babel -d dist index.js","prepublish":"npm test && npm run build","lint":"eslint .","test":"npm run lint && mocha --compilers js:babel/register --reporter nyan --require test-setup"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel":"^5.8.23","eslint":"^1.10.1","eslint-config-kentor":"^1.0.0","eslint-plugin-react":"^3.10.0","expect":"^1.13.0","jsdom":"^7.1.0","mocha":"^2.3.4","react":"^0.14.3","react-dom":"^0.14.3"},"gitHead":"b139d4ad5b529e2dec013232ff2e446a63fdbbb9","_id":"react-click-outside@2.0.1","_shasum":"be10a5c71bd6ed880b100c818a64f97eefcd674f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"be10a5c71bd6ed880b100c818a64f97eefcd674f","size":4097,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-2.0.1.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"directories":{},"publish_time":1448576310981,"_cnpm_publish_time":1448576310981,"_hasShrinkwrap":false},"2.0.0":{"name":"react-click-outside","version":"2.0.0","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"babel -d dist index.js","prepublish":"npm test && npm run build","lint":"eslint .","test":"npm run lint && mocha --compilers js:babel/register --reporter nyan --require test-setup"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel":"^5.8.23","eslint":"^1.6.0","eslint-config-kentor":"^1.0.0","eslint-plugin-react":"^3.5.1","expect":"^1.11.1","jsdom":"^6.5.1","mocha":"^2.3.3","react":"^0.14.0","react-dom":"^0.14.0"},"gitHead":"76228f4e96fcec87c63853ea867d2e9ea8e4b9db","_id":"react-click-outside@2.0.0","_shasum":"871bee596165d268fbaedf68bb52f1f6c2ecce61","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"871bee596165d268fbaedf68bb52f1f6c2ecce61","size":3988,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-2.0.0.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"directories":{},"publish_time":1445752693233,"_cnpm_publish_time":1445752693233,"_hasShrinkwrap":false},"1.0.1":{"name":"react-click-outside","version":"1.0.1","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"babel -d dist index.js","prepublish":"npm test && npm run build","test":"mocha --compilers js:babel/register --reporter nyan --require test-setup"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel":"^5.8.23","expect":"^1.11.1","jsdom":"^6.5.1","mocha":"^2.3.3","react":"^0.13.3"},"gitHead":"1b6e6f4e5107cd90fd6e0bf4d27729665f6f6adf","_id":"react-click-outside@1.0.1","_shasum":"c9a7a6410d529412622a859cfa1faf32bd1da0f3","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"c9a7a6410d529412622a859cfa1faf32bd1da0f3","size":3681,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-1.0.1.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"directories":{},"publish_time":1444873406669,"_cnpm_publish_time":1444873406669,"_hasShrinkwrap":false},"1.0.0":{"name":"react-click-outside","version":"1.0.0","description":"A component wrapper that provides click outside detection.","main":"dist/index.js","scripts":{"build":"babel -d dist index.js","prepublish":"npm test && npm run build","test":"mocha --compilers js:babel/register --reporter nyan --require test-setup"},"repository":{"type":"git","url":"git+https://github.com/kentor/react-click-outside.git"},"keywords":["click outside","higher order component","onclickoutside","react"],"author":{"name":"Kenneth Chung","email":"ken70r@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"homepage":"https://github.com/kentor/react-click-outside","devDependencies":{"babel":"^5.8.23","expect":"^1.11.1","jsdom":"^6.5.1","mocha":"^2.3.3","react":"^0.13.3"},"gitHead":"103a4b14337a005f0fe21c71ae89ed7e213d80c0","_id":"react-click-outside@1.0.0","_shasum":"9366bd4e3a3418499fcd7afcc1a5343e5a4ef8de","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"kentor","email":"ken70r@gmail.com"},"dist":{"shasum":"9366bd4e3a3418499fcd7afcc1a5343e5a4ef8de","size":3452,"noattachment":false,"key":"/react-click-outside/-/react-click-outside-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-click-outside/download/react-click-outside-1.0.0.tgz"},"maintainers":[{"name":"kentor","email":"ken70r@gmail.com"}],"directories":{},"publish_time":1444076456445,"_cnpm_publish_time":1444076456445,"_hasShrinkwrap":false}},"readme":"# React Click Outside\n\n[![Build Status](https://travis-ci.org/kentor/react-click-outside.svg)](https://travis-ci.org/kentor/react-click-outside) [![npm](https://img.shields.io/npm/v/react-click-outside.svg)](https://www.npmjs.com/package/react-click-outside)\n\nEnhance a React component with a Higher Order Component that provides click\noutside detection.\n\n**Note:** React 0.14 required for version >= 2.x. This assumes `react` and\n`react-dom` is installed in your project. Continue using version 1.x for React\n0.13 support.\n\n**Note:** Use version >= 2.3.0 to get rid of `React.createClass`\nwarnings in React 15.5.\n\n## Usage\n\nInstallation:\n\n```\nnpm install react-click-outside\n```\n\nSome component that you wish to enhance with click outside detection:\n\n```js\nconst createReactClass = require('create-react-class');\nconst enhanceWithClickOutside = require('react-click-outside');\nconst React = require('react');\n\nconst Dropdown = createReactClass({\n  getInitialState() {\n    return {\n      isOpened: false,\n    };\n  },\n\n  handleClickOutside() {\n    this.toggle();\n  },\n\n  toggle() {\n    this.setState({ isOpened: !this.state.isOpened });\n  },\n\n  render() {\n    ...\n  },\n});\n\nmodule.exports = enhanceWithClickOutside(Dropdown);\n```\n\n**Note:** There will be no error thrown if `handleClickOutside` is not\nimplemented.\n\n### `wrappedRef` prop\n\nUse the `wrappedRef` prop to get access to the wrapped component instance. For\nexample:\n\n```js\n// Inside a component's render method\n<Dropdown\n  wrappedRef={instance => { this.toggle = instance.toggle; }}\n/>\n\n// Now you can call toggle externally\nthis.toggle();\n```\n\n## Details\n\nThe `enhanceWithClickOutside` function wraps the provided component in another\ncomponent that registers a click handler on `document` for the event capturing\nphase. Using the event capturing phase prevents elements with a click handler\nthat calls `stopPropagation` from cancelling the click event that would\neventually trigger the component's `handleClickOutside` function.\n\n## Why not a mixin?\n\nThere are some mixins that provide click outside detection functionality, but\nthey prevent the component from implementing the  `componentDidMount` and\n`componentWillUnmount` life cycle hooks. I recommend not using a mixin for this\ncase.\n\n## Limitations\n\n- IE9+ due to the usage of the event capturing phase.\n\n## Not working on iOS?\n\nIf the `handleClickOutside` handler is not firing on iOS, try adding the\n`cursor: pointer` css style to the `<body>` element. There are many ways to\nachieve this, here is just one example:\n\n```js\nif ('ontouchstart' in document.documentElement) {\n  document.body.style.cursor = 'pointer';\n}\n```\n\nIf your app already has a way for mobile detection (e.g. Modernizr), you may\nwant to use that instead.\n\n\nSee issue [#4][i] for a discussion.\n\n## License\n\n[MIT](LICENSE.txt)\n\n[i]: https://github.com/kentor/react-click-outside/issues/4\n","_attachments":{},"homepage":"https://github.com/kentor/react-click-outside","bugs":{"url":"https://github.com/kentor/react-click-outside/issues"},"license":"MIT"}