@atlaskit/react-select
Advanced tools
Comparing version 1.0.3 to 1.0.4
# @atlaskit/react-select | ||
## 1.0.4 | ||
### Patch Changes | ||
- [#150410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150410) | ||
[`010ae8c2986e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/010ae8c2986e6) - | ||
If select is within react-beatiful-dnd, don't prevent onMouseDown event to fix select is not | ||
clickable in dnd | ||
## 1.0.3 | ||
@@ -4,0 +13,0 @@ |
@@ -422,3 +422,8 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
if (event.defaultPrevented) { | ||
return; | ||
var _this$controlRef; | ||
// react-dnd will fire preventDefault in mouseDown, which make select is not clickable. | ||
// temp workaround to check if select is within dnd, we don't do the early return. | ||
if (!((_this$controlRef = this.controlRef) !== null && _this$controlRef !== void 0 && _this$controlRef.closest('[data-rbd-draggable-context-id]'))) { | ||
return; | ||
} | ||
} | ||
@@ -425,0 +430,0 @@ const { |
{ | ||
"name": "@atlaskit/react-select", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A forked version of react-select to only be used in atlaskit/select", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian Pty Ltd", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
760821
18384