Closed simoneldevig closed 4 years ago
Hi @simoneldevig, that's a good pickup, thank you. Will double check it, but all makes good sense.
Thx @nathanwoulfe - just added some extra screenshots for reference :-)
All good, build just finished so will be on Nuget soon, and I'll update the umbraco package repo with the zip.
Perfect!
Hotfix: Property inconsistency
I'm experiencing issues with the v2.1.0 in Umbraco 8.4.0 where the setting seems to be a bit inconsistent. I then found out that the was because the
umbracoNaviHide
was not always being set.The first issue occurres when reading the property since the value is stored as a number, but in a standard implementation of
umbracoNaviHide
it's actually stored as a string. See example:Besides that the
umbracoNaviHide
prop was set when I click the button the first time, but after that I'm not actually not able to reset it since the code only sets thedisabled
property on the model and not theumbracoNaviHide
.The code in this PR solves my issues, but let me hear what you think 😉
Here's how the model looks when trying to reset the state.
Before the fix
After the fix
Thx for the package! It's a appreciated 👍