Skip to content

Commit

Permalink
Updated dependencies to latest and fixed a couple of bugs that were i…
Browse files Browse the repository at this point in the history
…dentified by updated typings.
  • Loading branch information
msfterictraut committed Apr 20, 2019
1 parent a2deb93 commit 8ca5a5d
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 148 deletions.
213 changes: 76 additions & 137 deletions package-lock.json

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

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"dependencies": {
"@types/lodash": "^4.14.123",
"@types/react": "^16.8.8",
"@types/react-dom": "^16.8.2",
"@types/react-native": "^0.57.40",
"@types/react": "^16.8.14",
"@types/react-dom": "^16.8.4",
"@types/react-native": "^0.57.47",
"lodash": "^4.17.11",
"prop-types": "^15.7.2",
"rebound": "^0.1.0",
Expand All @@ -29,11 +29,11 @@
"react-native-windows": "^0.57.0-rc.5"
},
"devDependencies": {
"tslint": "^5.14.0",
"tslint-microsoft-contrib": "^6.1.0",
"tslint-react": "^3.6.0",
"tsutils": "^3.9.1",
"typescript": "^3.3.3333"
"tslint": "^5.16.0",
"tslint-microsoft-contrib": "^6.1.1",
"tslint-react": "^4.0.0",
"tsutils": "^3.10.0",
"typescript": "^3.4.4"
},
"homepage": "https://microsoft.github.io/reactxp/",
"repository": {
Expand Down
5 changes: 4 additions & 1 deletion src/web/Clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export class Clipboard extends RX.Clipboard {

document.execCommand('copy');

window.getSelection().removeAllRanges();
const selection = window.getSelection();
if (selection) {
selection.removeAllRanges();
}
}
}

Expand Down
Loading

0 comments on commit 8ca5a5d

Please sign in to comment.