vue-preferences icon indicating copy to clipboard operation
vue-preferences copied to clipboard

defaultValue gives null for Boolean

Open TheAndroidGuy opened this issue 5 years ago • 2 comments

When using false as defaultValue, the default value is null instead of false. I have another preference which is of type string and it works properly for that preference. Using: localStorage

TheAndroidGuy avatar Jan 31 '20 18:01 TheAndroidGuy

Also, i noticed that the preferences are not consistent. They are properly saved in the localStorage but sometimes they are not reflected in the UI. The user needs to refresh the page in order to see the updated preference.

TheAndroidGuy avatar Feb 03 '20 23:02 TheAndroidGuy

Hi @TheAndroidGuy, thank four reporting the issue 😄! And sorry for the delay

  1. I was just able to see look into this, regarding the first comment I think I know what the issue is. I will do a bit more research and see if it easy to fix.
  2. Regarding your second comment can you provide an example where that happens? Or is that an intermittent thing? Please provide the version you are using

fedekau avatar Feb 26 '20 20:02 fedekau