sitestatic; fix typeahead for Edge
Microsoft Edge has no x/y in the Clientrect structure so use top/left instead which works on all browsers.
This commit is contained in:
parent
d240db37cd
commit
ab47d9e94a
@ -33,8 +33,8 @@
|
||||
function setListLocation() {
|
||||
if (!list) return;
|
||||
const rects = input.getClientRects()[0];
|
||||
list.style.top = (rects.y + rects.height) + "px";
|
||||
list.style.left = rects.x + "px";
|
||||
list.style.top = (rects.top + rects.height) + "px";
|
||||
list.style.left = rects.left + "px";
|
||||
}
|
||||
|
||||
function loadData(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user