Skip to content

Commit 639fc9a

Browse files
authored
remove unused action (#1398)
1 parent 42a3be4 commit 639fc9a

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

pgml-dashboard/src/components/inputs/text/search/search_option/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
use crate::components::stimulus::stimulus_action::{StimulusAction, StimulusEvents};
21
use pgml_components::{component, Component};
32
use sailfish::TemplateOnce;
43

54
#[derive(TemplateOnce, Default)]
65
#[template(path = "inputs/text/search/search_option/template.html")]
76
pub struct SearchOption {
87
value: Component,
9-
action: StimulusAction,
108
}
119

1210
impl SearchOption {
1311
pub fn new(value: Component) -> SearchOption {
14-
SearchOption {
15-
value,
16-
action: StimulusAction::new()
17-
.controller("inputs-text-search-search")
18-
.method("selectOption")
19-
.action(StimulusEvents::FocusIn),
20-
}
12+
SearchOption { value }
2113
}
2214
}
2315

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
<li
33
class="menu-item d-flex align-items-center justify-content-start"
4-
data-action="<%- action %>"
54
>
65
<%+ value %>
76
</li>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy