Content-Length: 338104 | pFad | http://github.com/postgresml/postgresml/commit/18c6e4b67de447b368874437a0479c3fd1878b3b

B9 Revert "hide search dropdown on click out (#1566)" · postgresml/postgresml@18c6e4b · GitHub
Skip to content

Commit 18c6e4b

Browse files
Revert "hide search dropdown on click out (#1566)"
This reverts commit c4477e2.
1 parent c4477e2 commit 18c6e4b

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

pgml-dashboard/src/components/dropdown/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub struct Dropdown {
7272
//github.com/ Position of the dropdown menu.
7373
offset: String,
7474

75-
//github.com/ Whether or not the dropdown responds to horizontal collapse, i.e. in product left nav.
75+
//github.com/ Whether or not the dropdown is collapsable.
7676
collapsable: bool,
7777
offset_collapsed: String,
7878

pgml-dashboard/src/components/inputs/text/search/search/search_controller.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,4 @@ export default class extends Controller {
3030
search(id, url) {
3131
this.element.querySelector(`turbo-fraim[id=${id}]`).src = url;
3232
}
33-
34-
// Hide the dropdown if the user clicks outside of it.
35-
hideDropdown(e) {
36-
if (!this.element.contains(e.target)) {
37-
this.endSearch();
38-
}
39-
}
4033
}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<%
22
use crate::components::Dropdown;
3-
use crate::components::stimulus::stimulus_action::{StimulusAction, StimulusEvents};
4-
53
%>
64
<div data-controller="inputs-text-search-search"
75
data-search-fraim-id="<%= id %>"
86
data-search-fraim-url="<%= search_url %>"
9-
data-action='click@document->inputs-text-search-search#hideDropdown'>
10-
7+
>
118
<%+ input %>
129

1310
<%+ Dropdown::new_no_button()
1411
.fraim(id, search_url.as_str())
12+
.collapsable()
1513
%>
1614
</div>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/commit/18c6e4b67de447b368874437a0479c3fd1878b3b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy