Skip to content

Commit e39b47e

Browse files
committedMay 15, 2020
fix minor stack issue
1 parent 33f0921 commit e39b47e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

Diff for: ‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to loose [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.5.1] - 2020-05-15
8+
### Fixed
9+
- An issue with getting target parents if popper unmounted too quickly.
10+
711
## [0.5.0] - 2020-05-15
812
### Fixed
913
- [#2](https://github.com/runfaj/react-nested-popper/issues/2) - Added position listener to update popper position for nested poppers

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-nested-popper",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "A react library based on popper.js that supports nested poppers and proper context binding.",
55
"main": "dist/lib.js",
66
"scripts": {

Diff for: ‎src/Stack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class Stack {
240240
const items = StackStore[key];
241241
for (let i = 0; i < items.length; i += 1) {
242242
const content = items[i];
243-
if (content.popperEl.contains(targetRef)) {
243+
if (content.popperEl && content.popperEl.contains(targetRef)) {
244244
foundOne = true;
245245
foundList[key] = i;
246246
break;

0 commit comments

Comments
 (0)