Skip to content

Commit 7352b29

Browse files
committed
fix: The default initial value of Input
1 parent cca48d7 commit 7352b29

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

thaw/src/input/mod.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,7 @@ pub fn Input(
137137
}
138138
};
139139

140-
let input_value: Option<String>;
141-
#[cfg(feature = "ssr")]
142-
{
143-
input_value = Some(value.get_untracked());
144-
}
145-
#[cfg(not(feature = "ssr"))]
146-
{
147-
input_value = None;
148-
}
140+
let input_value = value.get_untracked();
149141

150142
let prefix_if_ = input_prefix.as_ref().map_or(false, |prefix| prefix.if_);
151143
let suffix_if_ = input_suffix.as_ref().map_or(false, |suffix| suffix.if_);

0 commit comments

Comments
 (0)