From 689dae5d392e27ffaa82cecb8072c20e511e3727 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 21 Nov 2018 00:33:46 -0800 Subject: [PATCH] fix(dialog): when dialog is hidden, don't scroll to top (#672) * fix(dialog): when dialog is hidden, don't scroll to top * update package-lock.json --- package-lock.json | 5 - package.json | 7 +- routes/_components/compose/ComposeInput.html | 2 +- .../dialog/components/ModalDialog.html | 2 +- routes/_thirdparty/a11y-dialog/LICENSE | 8 + routes/_thirdparty/a11y-dialog/a11y-dialog.js | 392 ++++++++++++++++++ routes/_thirdparty/autosize/LICENSE.md | 21 + .../autosize}/autosize.js | 4 +- 8 files changed, 428 insertions(+), 13 deletions(-) create mode 100644 routes/_thirdparty/a11y-dialog/LICENSE create mode 100644 routes/_thirdparty/a11y-dialog/a11y-dialog.js create mode 100644 routes/_thirdparty/autosize/LICENSE.md rename routes/{_utils => _thirdparty/autosize}/autosize.js (96%) diff --git a/package-lock.json b/package-lock.json index 867093af..d3b93686 100644 --- a/package-lock.json +++ b/package-lock.json @@ -208,11 +208,6 @@ "resolved": "https://registry.npmjs.org/FileList/-/FileList-0.10.2.tgz", "integrity": "sha1-YAOxqXFZNBZLZ8Q0rWqHQaHNFHo=" }, - "a11y-dialog": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/a11y-dialog/-/a11y-dialog-4.0.1.tgz", - "integrity": "sha512-JsYMIaoZt7nZM1oDbxLBijyl09uZa91+UdPF+P9YadmmdtaVYx44v131UcqAhN48jNp8/BGV/80uMsBacPo2gg==" - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", diff --git a/package.json b/package.json index d8868b5b..7e3a555a 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ }, "dependencies": { "@gamestdio/websocket": "^0.2.8", - "a11y-dialog": "^4.0.1", "browserslist": "^4.3.4", "cheerio": "^1.0.0-rc.2", "child-process-promise": "^2.2.1", @@ -144,7 +143,8 @@ "Blob", "Element", "Image", - "NotificationEvent" + "NotificationEvent", + "NodeList" ], "ignore": [ "dist", @@ -181,8 +181,7 @@ }, "greenkeeper": { "ignore": [ - "sapper", - "a11y-dialog" + "sapper" ] }, "repository": { diff --git a/routes/_components/compose/ComposeInput.html b/routes/_components/compose/ComposeInput.html index cd606521..925c907f 100644 --- a/routes/_components/compose/ComposeInput.html +++ b/routes/_components/compose/ComposeInput.html @@ -28,7 +28,7 @@