File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to loose [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 0.5.1] - 2020-05-15
8
+ ### Fixed
9
+ - An issue with getting target parents if popper unmounted too quickly.
10
+
7
11
## [ 0.5.0] - 2020-05-15
8
12
### Fixed
9
13
- [ #2 ] ( https://github.com/runfaj/react-nested-popper/issues/2 ) - Added position listener to update popper position for nested poppers
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-nested-popper" ,
3
- "version" : " 0.5.0 " ,
3
+ "version" : " 0.5.1 " ,
4
4
"description" : " A react library based on popper.js that supports nested poppers and proper context binding." ,
5
5
"main" : " dist/lib.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class Stack {
240
240
const items = StackStore [ key ] ;
241
241
for ( let i = 0 ; i < items . length ; i += 1 ) {
242
242
const content = items [ i ] ;
243
- if ( content . popperEl . contains ( targetRef ) ) {
243
+ if ( content . popperEl && content . popperEl . contains ( targetRef ) ) {
244
244
foundOne = true ;
245
245
foundList [ key ] = i ;
246
246
break ;
You can’t perform that action at this time.
0 commit comments