Skip to content
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

Fix icon display after DOM has been modified on tree #155

Merged
merged 4 commits into from
Feb 19, 2024

Conversation

XxOsirisxX77
Copy link
Contributor

@XxOsirisxX77 XxOsirisxX77 commented Feb 16, 2024

Description

This pull request fixes the icon display after DOM is modified on tree view (Issue #149).

This pull request also fixes the import of domLoaded as it's not well imported and not awaited.

Current Version of Tree View:

broken.mp4

This Pull Request version of Tree View:

WOrking.version.mp4

Uses textContent for file instead of innerText as textContent uses markup and doesn't wait for render.
Removed isDirectory variable as it can be checked once.
Removed Promise as it causes flikering.
Improved File Tree Icons selector, so it doesn't account for Loading state ones.
Copy link
Owner

@homerchen19 homerchen19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@homerchen19 homerchen19 merged commit 249f0fd into homerchen19:master Feb 19, 2024
1 check passed
@XxOsirisxX77 XxOsirisxX77 deleted the Fix-Icon-Display-on-Tree branch February 19, 2024 13:47
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.

2 participants