fix
This commit is contained in:
parent
bcb69805ef
commit
18c51e88d1
1 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ impl DivWidget {
|
||||||
|
|
||||||
impl UIWidget for DivWidget {
|
impl UIWidget for DivWidget {
|
||||||
fn can_inherit(&self) -> bool {
|
fn can_inherit(&self) -> bool {
|
||||||
self.1
|
!self.1
|
||||||
}
|
}
|
||||||
|
|
||||||
fn base_class(&self) -> Vec<String> {
|
fn base_class(&self) -> Vec<String> {
|
||||||
|
@ -98,7 +98,7 @@ impl UIWidget for DivWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_with_class(&self, _: &str) -> Markup {
|
fn render_with_class(&self, class: &str) -> Markup {
|
||||||
let inner = html! {
|
let inner = html! {
|
||||||
@for e in &self.0 {
|
@for e in &self.0 {
|
||||||
(e.as_ref())
|
(e.as_ref())
|
||||||
|
@ -115,7 +115,7 @@ impl UIWidget for DivWidget {
|
||||||
.join(" ");
|
.join(" ");
|
||||||
|
|
||||||
PreEscaped(format!(
|
PreEscaped(format!(
|
||||||
"<div class='{}' {attrs}> {} </a>",
|
"<div class='{} {class}' {attrs}> {} </div>",
|
||||||
self.extended_class_().join(" "),
|
self.extended_class_().join(" "),
|
||||||
inner.0
|
inner.0
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Reference in a new issue