Skip to content

Commit

Permalink
Preparing 1.0.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
emilhe committed Feb 3, 2024
1 parent 7f5a72d commit ddf6611
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [1.0.9] - 03-02-23

### Changed

- Fixed bug in `Keyboard` component where the keydown event would fire twice.

## [1.0.8] - 25-01-23

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-extensions",
"version": "1.0.8",
"version": "1.0.9",
"description": "Extensions for Plotly Dash.",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dash-extensions"
version = "1.0.8"
version = "1.0.9"
description = "Extensions for Plotly Dash."
authors = ["emher <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/Keyboard.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export default class Keyboard extends Component {

componentDidMount() {
this.getSources().forEach(s => s.addEventListener("keydown", this.keydownHandler, false));
this.getSources().forEach(s => s.addEventListener("keyup", this.keydownHandler, false));
this.getSources().forEach(s => s.addEventListener("keyup", this.keyupHandler, false));
}

componentWillUnmount() {
this.getSources().forEach(s => s.removeEventListener("keydown", this.keydownHandler, false));
this.getSources().forEach(s => s.removeEventListener("keyup", this.keydownHandler, false));
this.getSources().forEach(s => s.removeEventListener("keyup", this.keyupHandler, false));
}

render() {
Expand Down

0 comments on commit ddf6611

Please sign in to comment.