This might not be an issue with Garlic.js, but there is a conflict when using a bootstrap modal cancel button and garlic
[button class="btn" data-dismiss="modal" type="reset"]Close modal and clear data[/button]
Despite the type being set to reset, the local storage is not cleared when the button is pressed (due to whatever happens to data-dismiss). I found a workaround, but it makes the code a bit messy
This might not be an issue with Garlic.js, but there is a conflict when using a bootstrap modal cancel button and garlic
[button class="btn" data-dismiss="modal" type="reset"]Close modal and clear data[/button]
Despite the type being set to reset, the local storage is not cleared when the button is pressed (due to whatever happens to data-dismiss). I found a workaround, but it makes the code a bit messy
[button class="btn" onclick="$('#myModalId').modal('hide');" type="reset"]