Comparing version 3.1.0 to 3.1.1
@@ -154,3 +154,4 @@ import React from "react"; | ||
this.onPanelClicked = (e) => { | ||
if (!this._ref.contains(this._ref.ownerDocument.activeElement) && this._ref.contains(e.target)) { | ||
const target = e.nativeEvent.target; | ||
if (!this._ref.contains(this._ref.ownerDocument.activeElement) && target instanceof Node && this._ref.contains(target)) { | ||
this._ref.querySelector('.dock-bar').focus(); | ||
@@ -157,0 +158,0 @@ } |
# History | ||
---- | ||
## 3.1.0 / 2021-09-06 | ||
- add dark theme | ||
## 3.0.14 / 2021-05-15 | ||
@@ -5,0 +8,0 @@ - panel navigation with arrow keys |
@@ -160,3 +160,4 @@ "use strict"; | ||
this.onPanelClicked = (e) => { | ||
if (!this._ref.contains(this._ref.ownerDocument.activeElement) && this._ref.contains(e.target)) { | ||
const target = e.nativeEvent.target; | ||
if (!this._ref.contains(this._ref.ownerDocument.activeElement) && target instanceof Node && this._ref.contains(target)) { | ||
this._ref.querySelector('.dock-bar').focus(); | ||
@@ -163,0 +164,0 @@ } |
{ | ||
"name": "rc-dock", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "dock layout for react component", | ||
@@ -5,0 +5,0 @@ "repository": { |
# Dock Layout for React Component | ||
![alt text](https://ticlo.github.io/rc-dock/images/demo.gif) | ||
![](https://ticlo.github.io/rc-dock/images/demo.gif) | ||
#### Popup panel as new browser window | ||
![alt text](https://ticlo.github.io/rc-dock/images/new-window.gif) | ||
![](https://ticlo.github.io/rc-dock/images/new-window.gif) | ||
#### Dark Theme | ||
![](https://ticlo.github.io/rc-dock/images/dark-theme.png) | ||
- **Examples:** https://ticlo.github.io/rc-dock/examples | ||
@@ -9,0 +12,0 @@ - **Docs:** https://ticlo.github.io/rc-dock |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
539486
130
14680
136
1