hotwire_combobox 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115007b81c7f19287376a49f41aa34c43e2fb331a18459b9f47877bf282d15cf
|
4
|
+
data.tar.gz: b5eb9f21bd0f46f39a434ef8dea3d82a639e00b0dfb7f131c8264c77a55ac2ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd39e53b94270d271b0b397d4e983346ea3b99a8054d0f2ab59756a38e440b23d7bf53d63cd34e1422530aaa1fa2fe0fec57aa5d0f693778d52f0f3a2e722b18
|
7
|
+
data.tar.gz: b8ef213bc60a3b722d25bf4532e562151b4c660ebac0c5c75283cb045532787ff51bcb12ecafdeac28af54dc20262646d4953d5a7f306bdd43950442160831bc
|
@@ -16,6 +16,7 @@ export default class extends Controller {
|
|
16
16
|
}
|
17
17
|
|
18
18
|
close() {
|
19
|
+
if (!this.isOpen) return
|
19
20
|
this.commitSelection()
|
20
21
|
this.expandedValue = false
|
21
22
|
}
|
@@ -47,7 +48,6 @@ export default class extends Controller {
|
|
47
48
|
if (this.element.contains(target)) return
|
48
49
|
|
49
50
|
this.close()
|
50
|
-
target.focus()
|
51
51
|
}
|
52
52
|
|
53
53
|
closeOnFocusOutside({ target }) {
|
@@ -56,7 +56,6 @@ export default class extends Controller {
|
|
56
56
|
if (target.matches("main")) return
|
57
57
|
|
58
58
|
this.close()
|
59
|
-
target.focus()
|
60
59
|
}
|
61
60
|
|
62
61
|
// private
|