daviddarnes/storage-form

Form inputs following radios do not restore state

Closed this issue · 0 comments

Describe the bug
An input that follows a radio does not seem to restore state when reloading the page.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to 'the demo page'
  2. Check the 'High contrast' checkbox
  3. Refresh the page
  4. Note that the checkbox is no longer highlighted

Expected behaviour
The input should update to the content in local storage

Example
Recreation of the bug can be found here: https://codepen.io/daviddarnes/pen/YzMjBPb?editors=1000