TimelineAlign Inherited when MudTimeline inside another MudTimeline
#10,498 opened on 2024/12/20
Repository metrics
- Stars
- (10,394 個のスター)
- PR merge metrics
- (平均マージ 6d 6h) (30d で 108 merged PRs)
説明
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
- Create a MudTimeline with a specific TimelineAlign value, such as TimelineAlign.Start.
- Inside one of the MudTimelineItem components of the parent timeline, add a MudCard component.
- Within the MudCard, create a nested MudTimeline and explicitly set TimelineAlign.Default as TimelineAlign value.
- 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