diff --git a/web-app/src/components/expr_ast_widget.rs b/web-app/src/components/expr_ast_widget.rs
index 66a414e8..b25fae64 100644
--- a/web-app/src/components/expr_ast_widget.rs
+++ b/web-app/src/components/expr_ast_widget.rs
@@ -61,7 +61,8 @@ impl Component for ExprAstWidget {
{ "Enter Expression:" }
+ init_value={ &self.current_input }
+ id=""/>
{ &self.last_good_parse }
{ expr_debug }
diff --git a/web-app/src/components/expr_entry.rs b/web-app/src/components/expr_entry.rs
index 0e10688e..a75f0092 100644
--- a/web-app/src/components/expr_entry.rs
+++ b/web-app/src/components/expr_entry.rs
@@ -43,6 +43,9 @@ pub struct ExprEntryProps {
/// Initial text in text field when it is loaded
pub init_value: String,
+
+ /// An ID to use for our strings
+ pub id: String,
}
impl Component for ExprEntry {
@@ -74,6 +77,7 @@ impl Component for ExprEntry {
match void {},
};
+ let id_num = format!("{}{}{}", self.id, &"line-number-", &line.to_string());
html! {