diff --git a/examples/calculator.rs b/examples/calculator.rs
index bc7f13459..648ccfbc3 100644
--- a/examples/calculator.rs
+++ b/examples/calculator.rs
@@ -62,6 +62,7 @@ fn app(cx: Scope) -> Element {
div { id: "wrapper",
div { class: "app",
div { class: "calculator",
+ tabindex: "0",
onkeydown: handle_key_down_event,
div { class: "calculator-display", val.to_string() }
div { class: "calculator-keypad",
diff --git a/packages/cli/src/builder.rs b/packages/cli/src/builder.rs
index a2ee2c73f..40bc31d55 100644
--- a/packages/cli/src/builder.rs
+++ b/packages/cli/src/builder.rs
@@ -460,8 +460,14 @@ pub fn gen_page(config: &DioxusConfig, serve: bool) -> String {
&style.to_str().unwrap(),
))
}
- if config.application.tools.clone().contains_key("tailwindcss") {
- style_str.push_str("\n");
+ if config
+ .application
+ .tools
+ .clone()
+ .unwrap_or_default()
+ .contains_key("tailwindcss")
+ {
+ style_str.push_str("\n");
}
replace_or_insert_before("{style_include}", &style_str, ") -> Result