Always show preview card on hover (#14032)

* always show preview on hover

* avoid use of important
This commit is contained in:
Suzanne Aitchison 2021-06-22 15:56:07 +01:00 committed by GitHub
parent d1c32b4e12
commit 546e64a029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,8 @@ const closeDropdown = ({ triggerElementId, dropdownContentId, onClose }) => {
.getElementById(triggerElementId)
?.setAttribute('aria-expanded', 'false');
dropdownContent.style.display = 'none';
// Remove the inline style added when we opened the dropdown
dropdownContent.style.removeProperty('display');
document.removeEventListener(
'keyup',