Repository navigation
v0.1.0-alpha.9
Pre-release
Pre-release
·
272 commits
to main
since this release
Buttons submit with a bare Submit: <Button Submit>Save</Button>. One rename.
Changed (check when you update)
Type="ButtonType..."onButton,IconButtonandMenuItemis replaced bySubmit, orReseton buttons. Write<Button Submit>for<Button Type="ButtonType.Submit">,<Button Reset>forButtonType.Reset, and dropType="ButtonType.Button"(a button that does nothing by itself is still the default). Setting bothSubmitandResetthrows.- Old markup fails to build.
TypeandButtonTypestay for this release, marked obsolete as errors, so every old use stops the build with error CS0619 and a message pointing toSubmit. (Without them, Razor would takeType="ButtonType.Button"as a plain HTML attribute, and the browser would treat that button as a submit button.) They'll be removed in a later release. - This also ends a false "Wrong attribute value" warning in Rider and ReSharper, which checked
<Button Type="...">against HTML's<button type>.
Fixed
<DialogClose Reset>threw "can't set both Submit and Reset" (aDialogClosesubmits its close form by default); it now resets the form instead.- The error for setting both
SubmitandResetnames the component used (DialogTrigger,DialogClose), notButton, and is raised while the button is loading too.
Full Changelog: v0.1.0-alpha.8...v0.1.0-alpha.9