Skip to content

Build your personal knowledge base with Trilium Notes

chore(text): tab width doesn't adjust when pressing the spinner

Elian Dorancb03f3cec56b
diff --git a/apps/client/src/widgets/type_widgets/options/text_notes.tsx b/apps/client/src/widgets/type_widgets/options/text_notes.tsx
index f6eed42348..4cf24dcedd 100644
--- a/apps/client/src/widgets/type_widgets/options/text_notes.tsx
+++ b/apps/client/src/widgets/type_widgets/options/text_notes.tsx
@@ -291,7 +291,7 @@ function CodeBlockStyle() {
type="number" min={1} max={16} step={1}
unit={t("code_block.tab_width_unit")}
currentValue={codeBlockTabWidth}
- onBlur={setCodeBlockTabWidth}
+ onChange={setCodeBlockTabWidth}
/>
</OptionsRow>