diff --git a/CHANGELOG.md b/CHANGELOG.md index d3569c5ea32e..ab181540233c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ **Bug fixes** - Fixed spacing of `EuiFormErrorText` to match `EuiFormHelpText` ([#2354](https://github.com/elastic/eui/pull/2354)) +- Fixed bug in `EuiPopover` where Array.prototype.slice() may have been called on 'undefined' ([#2369](https://github.com/elastic/eui/pull/2369)) ## [`14.2.0`](https://github.com/elastic/eui/tree/v14.2.0) diff --git a/src/components/popover/popover.tsx b/src/components/popover/popover.tsx index 2f41b58be030..d3b9cc382709 100644 --- a/src/components/popover/popover.tsx +++ b/src/components/popover/popover.tsx @@ -358,7 +358,7 @@ export class EuiPopover extends Component { // for each child element of `this.panel`, find any transition duration we should wait for before stabilizing const { durationMatch, delayMatch } = Array.prototype.slice - .call(this.panel ? this.panel.children : undefined) + .call(this.panel ? this.panel.children : []) .reduce( ({ durationMatch, delayMatch }, element) => { const transitionTimings = getTransitionTimings(element);