marathi_typing 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f7da6deb5a3d1bd52b560302e0e92b442c5932f73894c966381c7241125c18e
|
4
|
+
data.tar.gz: c56dbcc87be46f67e6d35107ecfb148280422903a86f1dd76b453cef6bd4f99f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74094b83da6d95f2706932319064aa9381b6dc8cdd50b792ed434f0d3826e40589ad94a3b0a4623aac0840a780929c3a0a5ea3ccfa14c10148b78dd82421dee4
|
7
|
+
data.tar.gz: 5acfb3c4a6dcd827865956863229ea4c147663e01123e9f47964486438d43735d99b175c479126047e05732aefc00a36253a8b9e9cef5e44c267ceb068fd033f
|
@@ -38,6 +38,8 @@ export default class extends Controller {
|
|
38
38
|
}
|
39
39
|
});
|
40
40
|
|
41
|
+
document.addEventListener("click", this.handleClickOutside);
|
42
|
+
|
41
43
|
}
|
42
44
|
|
43
45
|
fetchSuggestions(event) {
|
@@ -138,4 +140,17 @@ export default class extends Controller {
|
|
138
140
|
this.suggestionsTarget.style.padding = "0";
|
139
141
|
}
|
140
142
|
|
143
|
+
handleClickOutside = (event) => {
|
144
|
+
const isClickInsideInput = this.inputTarget.contains(event.target);
|
145
|
+
const isClickInsideSuggestions = this.suggestionsTarget?.contains(event.target);
|
146
|
+
|
147
|
+
if (!isClickInsideInput && !isClickInsideSuggestions) {
|
148
|
+
this.suggestionsTarget.innerHTML = "";
|
149
|
+
this.suggestionsTarget.style.border = "0";
|
150
|
+
this.suggestionsTarget.style.padding = "0";
|
151
|
+
}
|
152
|
+
};
|
153
|
+
|
154
|
+
|
141
155
|
}
|
156
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marathi_typing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ajit Dhanje
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|