Removed required

This commit is contained in:
CommanderRedYT committed 2021-11-24 16:51:38 +01:00
1 parent 6ffa4580d8
commit c32007bc3b
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@ typename std::enable_if<
, bool>::type
showInputForSetting(std::string_view key, T value, std::string &body)
{
body += fmt::format("<input type=\"number\" name=\"{}\" value=\"{}\" min=\"{}\" max=\"{}\" step=\"1\" required />",
body += fmt::format("<input type=\"number\" name=\"{}\" value=\"{}\" min=\"{}\" max=\"{}\" step=\"1\" />",
esphttpdutils::htmlentities(key),
value,
std::numeric_limits<T>::min(),
@@ -56,7 +56,7 @@ typename std::enable_if<
, bool>::type
showInputForSetting(std::string_view key, T value, std::string &body)
{
body += fmt::format("<input type=\"text\" name=\"{}\" value=\"{}{}{}{}\" pattern=\"[0-9]{{4}}\" required />",
body += fmt::format("<input type=\"text\" name=\"{}\" value=\"{}{}{}{}\" pattern=\"[0-9]{{4}}\" />",
esphttpdutils::htmlentities(key),
value[0],
value[1],