Skip to content

Commit

Permalink
Substitute classlist.js with classlist-polyfill (#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Sep 21, 2020
1 parent b7ea6b0 commit 9b37653
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/javascript/app/components/modal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'classlist.js';
import 'classlist-polyfill';
import { createFocusTrap } from 'focus-trap';
import Events from '../utils/events';

Expand Down
2 changes: 1 addition & 1 deletion app/javascript/app/i18n-dropdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'classlist.js';
import 'classlist-polyfill';

document.addEventListener('DOMContentLoaded', () => {
const mobileLink = document.querySelector('.i18n-mobile-toggle > a');
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/app/radio-btn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'classlist.js';
import 'classlist-polyfill';

function clearHighlight(name) {
const radioGroup = document.querySelectorAll(`input[name='${name}']`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"base32-crockford-browser": "^1.0.0",
"basscss-sass": "^3.0.0",
"classlist.js": "^1.1.20150312",
"classlist-polyfill": "^1.2.0",
"cleave.js": "^1.5.3",
"clipboard": "^1.6.1",
"focus-trap": "^6.0.1",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2534,11 +2534,6 @@ classlist-polyfill@^1.0.3, classlist-polyfill@^1.2.0:
resolved "https://registry.yarnpkg.com/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz#935bc2dfd9458a876b279617514638bcaa964a2e"
integrity sha1-k1vC39lFiodrJ5YXUUY4vKqWSi4=

classlist.js@^1.1.20150312:
version "1.1.20150312"
resolved "https://registry.yarnpkg.com/classlist.js/-/classlist.js-1.1.20150312.tgz#1d70842f7022f08d9ac086ce69e5b250f2c57789"
integrity sha1-HXCEL3Ai8I2awIbOaeWyUPLFd4k=

clean-stack@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
Expand Down

0 comments on commit 9b37653

Please sign in to comment.