beyond-rails 0.0.271 → 0.0.272
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/js/components/SearchDropdown.js +4 -11
- data/src/js/components/TagInput.js +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90e90e6f38c45540cbedb5ccc0341459c5a9a210d27c472aa97b340a4b2d9814
|
4
|
+
data.tar.gz: 34f2a1783e2c88888e782bdb42517d0a53b2dd6505a69542519aac2689e20d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 355b5f4412816e6219309c12a2b9a779920bb9e1dda4a1c65827efddad7a51dcc20cac7fafea460fe48f7550a28b44741f7f13112d9f6d265718d1587980bd38
|
7
|
+
data.tar.gz: da9e828f1ecc04b2398ff6418da097a88895454f5cc24d0e9c935cacfcc5cc0da10d4b0417e1f232e61e5765cd5c627cc31404719ba995ade2d430d5a8ce7716
|
@@ -247,17 +247,10 @@ export default class SearchDropdown {
|
|
247
247
|
return Array.from(this.menuContent.querySelectorAll('[data-item]'))
|
248
248
|
}
|
249
249
|
|
250
|
-
findClickedItem(target
|
251
|
-
const
|
252
|
-
|
253
|
-
|
254
|
-
if (node.dataset && ('item' in node.dataset)) {
|
255
|
-
const index = rows.findIndex(row => row === node)
|
256
|
-
return this.items[index]
|
257
|
-
}
|
258
|
-
node = node.parentNode
|
259
|
-
}
|
260
|
-
return null
|
250
|
+
findClickedItem(target) {
|
251
|
+
const index = this.getMenuItemEls()
|
252
|
+
.findIndex(item => (target === item) || (item.contains(target)))
|
253
|
+
return this.items[index]
|
261
254
|
}
|
262
255
|
|
263
256
|
isInputFocused() {
|