diff --git a/src/AutoConnectElementBasisImpl.h b/src/AutoConnectElementBasisImpl.h
index 4caf555..24f5fd4 100644
--- a/src/AutoConnectElementBasisImpl.h
+++ b/src/AutoConnectElementBasisImpl.h
@@ -181,21 +181,23 @@ void AutoConnectRadioBasis::empty(const size_t reserve) {
const String AutoConnectRadioBasis::toHTML(void) const {
String html = String("");
- if (label.length()) {
- html = label;
- if (order == AC_Vertical)
- html += String(F("
"));
- }
- uint8_t n = 0;
- for (const String value : _values) {
- n++;
- String id = name + "_" + String(n);
- html += String(F(""));
- if (order == AC_Vertical)
- html += String(F("
"));
+ if (enable) {
+ if (label.length()) {
+ html = label;
+ if (order == AC_Vertical)
+ html += String(F("
"));
+ }
+ uint8_t n = 0;
+ for (const String value : _values) {
+ n++;
+ String id = name + "_" + String(n);
+ html += String(F(""));
+ if (order == AC_Vertical)
+ html += String(F("
"));
+ }
}
return html;
}
@@ -245,17 +247,19 @@ void AutoConnectSelectBasis::select(const String& value) {
const String AutoConnectSelectBasis::toHTML(void) const {
String html = String("");
- if (label.length())
- html = String(F(""));
- html += String(F(""));
return html;
}