rc-select
Advanced tools
Comparing version 14.13.3 to 14.13.4
@@ -519,4 +519,9 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
empty: emptyOptions, | ||
getTriggerDOMNode: function getTriggerDOMNode() { | ||
return selectorDomRef.current; | ||
getTriggerDOMNode: function getTriggerDOMNode(node) { | ||
return ( | ||
// TODO: This is workaround and should be removed in `rc-select` | ||
// And use new standard `nativeElement` for ref. | ||
// But we should update `rc-resize-observer` first. | ||
selectorDomRef.current || node | ||
); | ||
}, | ||
@@ -523,0 +528,0 @@ onPopupVisibleChange: onTriggerVisibleChange, |
@@ -25,3 +25,3 @@ import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface'; | ||
empty: boolean; | ||
getTriggerDOMNode: () => HTMLElement; | ||
getTriggerDOMNode: (node: HTMLElement) => HTMLElement; | ||
onPopupVisibleChange?: (visible: boolean) => void; | ||
@@ -28,0 +28,0 @@ onPopupMouseEnter: () => void; |
@@ -529,4 +529,9 @@ "use strict"; | ||
empty: emptyOptions, | ||
getTriggerDOMNode: function getTriggerDOMNode() { | ||
return selectorDomRef.current; | ||
getTriggerDOMNode: function getTriggerDOMNode(node) { | ||
return ( | ||
// TODO: This is workaround and should be removed in `rc-select` | ||
// And use new standard `nativeElement` for ref. | ||
// But we should update `rc-resize-observer` first. | ||
selectorDomRef.current || node | ||
); | ||
}, | ||
@@ -533,0 +538,0 @@ onPopupVisibleChange: onTriggerVisibleChange, |
@@ -25,3 +25,3 @@ import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface'; | ||
empty: boolean; | ||
getTriggerDOMNode: () => HTMLElement; | ||
getTriggerDOMNode: (node: HTMLElement) => HTMLElement; | ||
onPopupVisibleChange?: (visible: boolean) => void; | ||
@@ -28,0 +28,0 @@ onPopupMouseEnter: () => void; |
{ | ||
"name": "rc-select", | ||
"version": "14.13.3", | ||
"version": "14.13.4", | ||
"description": "React Select", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
340678
7422