MudBlazor/MudBlazor

TimelineAlign Inherited when MudTimeline inside another MudTimeline

开放

#10,498 创建于 2024年12月20日

 (1 条评论) (0 个反应) (0 位负责人)C# (1,631 个派生)batch import
buggood first issue

仓库指标

星标
 (10,394 个星标)
PR 合并指标
 (平均合并 6天 6小时) (30 天内合并 108 个 PR)

描述

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudTimeline

What happened?

When a MudTimeline is nested inside another MudTimeline (e.g., within a MudCard), the TimelineAlign parameter of the child timeline unexpectedly inherits the value of the parent's TimelineAlign parameter, only if the child'specified TimelineAlign is Default.

Expected behavior

When a MudTimeline is nested inside another MudTimeline, the TimelineAlign parameter of the child timeline should respect its explicitly specified value and not inherit the TimelineAlign value of the parent timeline. Each timeline should function independently, maintaining its own alignment settings.

Reproduction link

https://try.mudblazor.com/snippet/GEmoFGckfsDqYsqK

Reproduction steps

  1. Create a MudTimeline with a specific TimelineAlign value, such as TimelineAlign.Start.
  2. Inside one of the MudTimelineItem components of the parent timeline, add a MudCard component.
  3. Within the MudCard, create a nested MudTimeline and explicitly set TimelineAlign.Default as TimelineAlign value.
  4. Observe that the nested MudTimeline does not respect its explicitly set TimelineAlign value and instead inherits the TimelineAlign value from the parent MudTimeline.

Relevant log output

No response

Version (bug)

7.15.0

Version (working)

No response

What browsers are you seeing the problem on?

Chrome

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

贡献者指南