Skip to content

Commit 696189f

Browse files
committed
Removed right-to-left in searchbar due to bugs
1 parent fbf0ca5 commit 696189f

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

app/src/index.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
})
192192
.then(() => {
193193
if (searchBar.textContent === '') {
194-
removeClassHebrew();
194+
// removeClassHebrew();
195195
}
196196
});
197197

@@ -253,18 +253,20 @@
253253
});
254254

255255
$(searchBar).on('awesomplete-select', (e, target) => {
256-
let text;
257-
if (target !== undefined) {
258-
text = target.textContent;
259-
} else {
260-
text = document.querySelector('li[aria-selected="true"]').textContent
261-
}
256+
if (!e.isDefaultPrevented()) {
257+
let text;
258+
if (target !== undefined) {
259+
text = target.textContent;
260+
} else {
261+
text = document.querySelector('li[aria-selected="true"]').textContent
262+
}
262263

263-
e.preventDefault();
264-
searchBar.textContent = text;
264+
e.preventDefault();
265+
searchBar.textContent = text;
265266

266-
main.search(text);
267-
list.innerHTML = '';
267+
main.search(text);
268+
list.innerHTML = '';
269+
}
268270
});
269271

270272
function addClassHebrew() {
@@ -300,8 +302,8 @@
300302
}
301303

302304

303-
$('.url').focus(addClassHebrew).on('input', (addClassHebrew)).on('input', (addClassHebrew));
304-
$('.url').focus(removeClassHebrew).on('input', (removeClassHebrew)).on('input', (removeClassHebrew));
305+
// $('.url').focus(addClassHebrew).on('input', (addClassHebrew)).on('input', (addClassHebrew));
306+
// $('.url').focus(removeClassHebrew).on('input', (removeClassHebrew)).on('input', (removeClassHebrew));
305307

306308
</script>
307309

0 commit comments

Comments
 (0)