Skip to content

fix: rendering anomalies caused by element zIndex update #1924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged

Conversation

wang1212
Copy link
Member

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / Document optimization
  • TypeScript definition update
  • Refactoring
  • Performance improvement
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

fixed #1910

💡 Background and solution

In #1921 , we fixed the rendering anomaly in 3 scenarios, but missed a typical case in an interactive scenario. If we do not have an element with zIndex != 0 in the child element during the update process, we will clear the sorted list. However, if a new child element with zIndex != 0 is mounted later, it is not enough to just check whether the sorted list exists. We should check whether the sorted list is empty. If it is empty, we will directly sort all child elements to get the correct rendering list.

📝 Changelog

Language Changelog
🇺🇸 English fix: rendering anomalies caused by element zIndex update
🇨🇳 Chinese fix: 元素 zIndex 更新导致的渲染异常

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@wang1212 wang1212 merged commit 68bc365 into release Apr 14, 2025
2 checks passed
@wang1212 wang1212 deleted the fix-1910 branch April 14, 2025 02:45
wang1212 added a commit that referenced this pull request Apr 14, 2025
* fix: rendering anomalies caused by element zIndex update (#1924)

* chore: add changeset

* chore(release): bump version (#1925)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants