Search bar not working on IE
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Developer
In addition to this: you can't use arrow keys to navigate through the dropdown list.
This feature is not implemented yet. See #25913 (closed)
@blackst0ne Oh, I've probably overlooked. I just recognized that the arrow keys don't work.
- Sean McGivern added ~978334 label
added ~978334 label
- Sean McGivern changed milestone to %8.16
changed milestone to %8.16
- Filipa Lacerda assigned to @filipa
assigned to @filipa
- Sean McGivern mentioned in issue #26770 (closed)
mentioned in issue #26770 (closed)
- Contributor
The reason this does not work is because
new Event()
is not supported by IE as you can see in here: https://developer.mozilla.org/en-US/docs/Web/API/Event/Event and it's being used in here https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6#L81This is simply solved by adding
CustomEvent
polyfill and use it instead.BUT When we do that, we have a new problem:
The
closest
function is fromDroplab
which means we need to fix that in that lib. - https://gitlab.com/jschatz1/DropLab/issues/19 - Contributor
IE problem is:
- Go to issues page
- Click in the input filter
- You will see the drodpdown with the hints
- Click in <@author> (or any other hint)
What I could debug untill know - and the only thing I know for sure is:
-
First problem is:
Object doens’t support this action
- This one is easy: We need to change Event to CustomEvent in here: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6#L81 because Event is not supported by IE -
After fixing that we will catch the second problem, IE will throw an error inside the
while
inside theclosest
function of DropLab:Unable to get property ‘tagName’ of undefined or null reference
this error is thrown in this line: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/droplab/droplab.js#L671
and this happens because
.parentNode
is null.This function is called by this line: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/droplab/droplab.js#L273 the
e.target.parentNode
is already null in here.My guess is, when this line runs https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/droplab/droplab.js#L281 the content of the hint dropdown is not in the DOM yet. But it’s just a guess
- Contributor
@jschatz1 going to assign to you, feel free to assign it back if you need
(I will continue debugging in a couple of hours, see if I can figure it out)
- Filipa Lacerda assigned to @jschatz1
assigned to @jschatz1
- Eric Eastwood assigned to @MadLittleMods
assigned to @MadLittleMods
- Eric Eastwood mentioned in commit 494a531e
mentioned in commit 494a531e
- Eric Eastwood mentioned in merge request !8675 (merged)
mentioned in merge request !8675 (merged)
- Eric Eastwood mentioned in commit 9854fa22
mentioned in commit 9854fa22
- Victor Wu mentioned in issue #25913 (closed)
mentioned in issue #25913 (closed)
- Eric Eastwood mentioned in commit c0a9ece1
mentioned in commit c0a9ece1
- Jacob Schatz closed via merge request !8675 (merged)
closed via merge request !8675 (merged)
- Jacob Schatz mentioned in commit 611917ec
mentioned in commit 611917ec
- Eric Eastwood added ~1114661 label
added ~1114661 label
- Eric Eastwood mentioned in commit 99a99a3e
mentioned in commit 99a99a3e
- Eric Eastwood mentioned in commit 1b63b3fe
mentioned in commit 1b63b3fe
- Jacob Schatz mentioned in commit e8552366
mentioned in commit e8552366
- Eric Eastwood mentioned in merge request !8689 (merged)
mentioned in merge request !8689 (merged)
- Rémy Coutable added ~17876 label
added ~17876 label
- Victor Wu added ~874211 label
added ~874211 label
- Victor Wu added ~14281 label
added ~14281 label
- Jacob Schatz mentioned in commit b697b783
mentioned in commit b697b783
- 🤖 GitLab Bot 🤖 added devopsplan label
added devopsplan label