Skip to content

Commit 8ca5a5d

Browse files
committed
Updated dependencies to latest and fixed a couple of bugs that were identified by updated typings.
1 parent a2deb93 commit 8ca5a5d

File tree

4 files changed

+90
-148
lines changed

4 files changed

+90
-148
lines changed

package-lock.json

Lines changed: 76 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"dependencies": {
1515
"@types/lodash": "^4.14.123",
16-
"@types/react": "^16.8.8",
17-
"@types/react-dom": "^16.8.2",
18-
"@types/react-native": "^0.57.40",
16+
"@types/react": "^16.8.14",
17+
"@types/react-dom": "^16.8.4",
18+
"@types/react-native": "^0.57.47",
1919
"lodash": "^4.17.11",
2020
"prop-types": "^15.7.2",
2121
"rebound": "^0.1.0",
@@ -29,11 +29,11 @@
2929
"react-native-windows": "^0.57.0-rc.5"
3030
},
3131
"devDependencies": {
32-
"tslint": "^5.14.0",
33-
"tslint-microsoft-contrib": "^6.1.0",
34-
"tslint-react": "^3.6.0",
35-
"tsutils": "^3.9.1",
36-
"typescript": "^3.3.3333"
32+
"tslint": "^5.16.0",
33+
"tslint-microsoft-contrib": "^6.1.1",
34+
"tslint-react": "^4.0.0",
35+
"tsutils": "^3.10.0",
36+
"typescript": "^3.4.4"
3737
},
3838
"homepage": "https://microsoft.github.io/reactxp/",
3939
"repository": {

src/web/Clipboard.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ export class Clipboard extends RX.Clipboard {
4949

5050
document.execCommand('copy');
5151

52-
window.getSelection().removeAllRanges();
52+
const selection = window.getSelection();
53+
if (selection) {
54+
selection.removeAllRanges();
55+
}
5356
}
5457
}
5558

0 commit comments

Comments
 (0)