Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2020 at 16:23 UTC
Updated:
9 Nov 2020 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mherchelNote I think that the
node.classList.remove()2nd param works properly in IE11. I think @nod_ is thinking of thenode.classList.toggle()method.Either way, we'll need to either fix it, or document that it's working properly in IE11.
Comment #3
nod_Ok it was an extra line, same thing is done in the toggleNav function.
Comment #4
mherchelThe last patch removes the functionality to remove the overlay on resize. Not sure if that's the appropriate behavior.
Comment #5
ravi.shankar commentedAdded reroll of patch #3.
Comment #6
kapilv commentedComment #7
mherchelNeed to address the feedback in #4
Comment #8
kostyashupenkoIt is always interesting to check if thing is buggy in IE11. Well, docs says IE doesn't support multiple arguments for
add()orremove()https://developer.mozilla.org/en-US/docs/Web/API/Element/classList#Brows..., but for some reason the following codeprops.body.classList.remove('js-overlay-active', 'js-fixed');works fine in my real IE11 and MS Edge. Then i've tried to assign/remove classes from IE 11 console and it was fully unsuccessful -> means, doesn't work with multiple arguments. So to me it looks like it works only for some mysterious reason, sometimes.Better separate this code on two lines and keep everything in the "core" style.
Also fixed some little error during
yarn lint:core-jsComment #9
longwaveBetter to be safe than sorry where IE11 is concerned, #8 looks good to me.
Comment #12
lauriiiCommitted 63a3488 and pushed to 9.2.x and 9.1.x. Thanks!