From 2fd138563bb0c017a1072e79fe78e6479086e9d1 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sat, 9 Jul 2022 12:35:20 +1000
Subject: Fix search suggestions wrong-text on mobile

Turns out the input wasn't converted to lowercase before being matched
with suggestion data, and this was more noticeable on mobile due to
auto-capitalisation
---
 src/components/TileInfoModal.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/TileInfoModal.vue')

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index a70215d..556846a 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -240,7 +240,7 @@ export default defineComponent({
 		onLinkIconClick(evt: Event){
 			// Copy link to clipboard
 			let url = new URL(window.location.href);
-			url.search = new URLSearchParams({node: this.nodeName});
+			url.search = (new URLSearchParams({node: this.nodeName})).toString();
 			navigator.clipboard.writeText(url.toString());
 			// Show visual indicator
 			this.linkCopied = true;
-- 
cgit v1.2.3

