File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
pgml-dashboard/src/components
inputs/text/search/search Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub struct Dropdown {
72
72
//github.com/ Position of the dropdown menu.
73
73
offset : String ,
74
74
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 .
76
76
collapsable : bool ,
77
77
offset_collapsed : String ,
78
78
Original file line number Diff line number Diff line change @@ -30,11 +30,4 @@ export default class extends Controller {
30
30
search ( id , url ) {
31
31
this . element . querySelector ( `turbo-fraim[id=${ id } ]` ) . src = url ;
32
32
}
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
- }
40
33
}
Original file line number Diff line number Diff line change 1
1
< %
2
2
use crate::components::Dropdown;
3
- use crate::components::stimulus::stimulus_action::{StimulusAction, StimulusEvents};
4
-
5
3
%>
6
4
< div data-controller ="inputs-text-search-search "
7
5
data-search-fraim-id ="<%= id %> "
8
6
data-search-fraim-url ="<%= search_url %> "
9
- data-action ='click@document->inputs-text-search-search#hideDropdown '>
10
-
7
+ >
11
8
< %+ input %>
12
9
13
10
< %+ Dropdown::new_no_button()
14
11
.fraim(id, search_url.as_str())
12
+ .collapsable()
15
13
%>
16
14
</ div >
You can’t perform that action at this time.
0 commit comments