Skip to content

Commit

Permalink
change mousedown event to pointerdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Aram Vardanyan committed Apr 18, 2023
1 parent 897f3e2 commit 89eb185
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "5.4.3",
"version": "5.4.4",
"scripts": {
"start": "npm run storybook",
"version": "./update-version.sh",
Expand Down
4 changes: 2 additions & 2 deletions packages/cells/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workfront-grid/glide-data-grid-cells",
"version": "5.4.3",
"version": "5.4.4",
"description": "Extra cells for glide-data-grid",
"sideEffects": [
"**/*.css"
Expand Down Expand Up @@ -52,7 +52,7 @@
"dependencies": {
"@toast-ui/editor": "3.1.10",
"@toast-ui/react-editor": "3.1.10",
"@workfront-grid/glide-data-grid": "5.4.3",
"@workfront-grid/glide-data-grid": "5.4.4",
"react-select": "^5.2.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workfront-grid/glide-data-grid",
"version": "5.4.3",
"version": "5.4.4",
"description": "React data grid for beautifully displaying and editing large amounts of data with amazing performance.",
"sideEffects": [
"**/*.css"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export default class ClickOutsideContainer extends React.PureComponent<Props> {
private wrapperRef = React.createRef<HTMLDivElement>();

public componentDidMount() {
document.addEventListener("mousedown", this.clickOutside, true);
document.addEventListener("pointerdown", this.clickOutside, true);
document.addEventListener("contextmenu", this.clickOutside, true);
}

public componentWillUnmount() {
document.removeEventListener("mousedown", this.clickOutside, true);
document.removeEventListener("pointerdown", this.clickOutside, true);
document.removeEventListener("contextmenu", this.clickOutside, true);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/source/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workfront-grid/glide-data-grid-source",
"version": "5.4.3",
"version": "5.4.4",
"description": "Useful data source hooks for Glide Data Grid",
"sideEffects": false,
"type": "module",
Expand Down Expand Up @@ -44,7 +44,7 @@
"canvas"
],
"dependencies": {
"@workfront-grid/glide-data-grid": "5.4.3"
"@workfront-grid/glide-data-grid": "5.4.4"
},
"peerDependencies": {
"lodash": "^4.17.19",
Expand Down

0 comments on commit 89eb185

Please sign in to comment.