Date | 2023-01-05 (680 days ago) |
---|---|
Downloads | 1,533 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET 6 |
Umbraco Versions | Umbraco 10 Umbraco 11 |
#installation
">Installation.NET CLI:
dotnet add package Limbo.Umbraco.TextBox --version 1.0.1
Package Manager:
Install-Package Limbo.Umbraco.TextBox -Version 1.0.1
#changelog
">ChangelogFixed null value bug in value converters (see c7ddb41
)
If a value hasn't been specified, the intermediate value sometimes comes back as null rather than an empty string. This may be when the property editor is used in the block list, but not as a regular property on a content type - but I haven't tested enough to confirm this.
The value converters will try to set a fallback value when specified on the data type, but they would return an empty string before reaching the fallback logic if the intermediate value was null. With this commit, the null check has been (re)moved, ensuring that the fallback value is correctly applied.
Added support for nullable reference types (see c4d66cc
and c7ddb41
)
Since Umbraco 10+ supports nullable reference types, so should this package.
Added upper bound for the Umbraco dependencies (see 4a71d03
)
This means that the package has an explicit dependency for Umbraco 10 and 11, as it doesn't work on or hasn't been tested against other versions of Umbraco.
Updated the Skybrud.Essentials dependency (see 21406ce
)
The package was a few versions behind, so might as well update it.
Data editor constants should be public (see 503ed77
)
Making them public means that they can be accessed from outside of the package.
Value converters should be public (see f2a5527
)
Albeit for debugging purposes, I needed to disable the text box value converter in a project, but couldn't reference the type in the project as the class was internal. Now both value converters are public.