Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

[缺陷] FormItem 的 For 未赋值会引发空引用异常 #281

Open
@teacher-zhou

Description

@teacher-zhou

详细描述

<FormItem Label="文本" />

重现步骤

FormItem 组件中第 139 行代码

@class = HtmlHelper.Instance.Class().Append("t-form__controls")
                                    .Append($"t-is-{StatusCssClass}", Identifier.HasValue) //Identifier is null 引发异常
                                    .Append($"t-form--success-border", StatusCssClass == Status.Success.GetCssClass()),
style = HtmlHelper.Instance.Style().Append("margin-left:60px", CascadingForm.Alignment != FormAlignment.Top)

期望结果

For 不赋值,则不引发异常

托管方式

  • Blazor Server
  • Blazor WebAssembly

浏览器版本

  • Edge
  • Chrome
  • Firefox
  • 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug程序不能正常工作

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions