[Koha-bugs] [Bug 24518] New: Partner filtering does not work in IE11
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 27 12:28:05 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24518
Bug ID: 24518
Summary: Partner filtering does not work in IE11
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: ILL
Assignee: koha-bugs at lists.koha-community.org
Reporter: andrew.isherwood at ptfs-europe.com
We're doing something like this to hide options that are not applicable to the
current filtering string:
$('#my_select_option').hide();
This applies the following CSS rule to the <option> element:
display: none
It turns out that IE won't hide option elements. So, that's annoying.
We have a couple of choices here. We could either clone the entire list of
partners, filter out the ones that don't match the search string and then use
the remainder to repopulate the <option> elements. Or we could wrap the
<options> in something that IE11 will apply display:none to, such as a <span>
or something. However, this will lead to something that is semantically
incorrect for HTML5, since a <select> can only have <option> or <optgroup> as
it's children.
Despite the first option feeling a bit gnarly, I'm going to go for that as it
will fix the problem and not lead to broken markup.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list