Dirty fix for the bug in #ids.prev()
[demos/spring-boot] / src / main / resources / templates / form.html
index 533758e..b8b5158 100644 (file)
@@ -26,8 +26,7 @@
               </div>
               <div class="form-group" th:each="key : *{map.keySet()}">
                 <input type="checkbox" class="form-check-label" th:field="*{map[__${key}__]}" />
-                <!-- <label class="form-check-label" th:for="${#ids.prev('map[__${key}__]')}" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>-->
-                <label class="form-check-label" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
+                <label class="form-check-label" th:for="|map${key}1|" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
               </div>
             </div>
           </div>