aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/form.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/form.cc b/src/form.cc
index 18441fb8..bf1f8e33 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -249,7 +249,9 @@ static void Html_add_input(DilloHtml *html, DilloHtmlInputType type,
html->inputs_outside_form->increase();
html->inputs_outside_form->set(ni, input);
- input->setEnabled(false);
+ if (html->bw->NumPendingStyleSheets > 0) {
+ input->setEnabled(false);
+ }
}
}