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

Allow table update on attribute changes in case of extending (overriding) TableNode #6410

Closed
EugeneVorobyev opened this issue Jul 16, 2024 · 0 comments · Fixed by #6479
Closed

Comments

@EugeneVorobyev
Copy link
Contributor

Hi,

I am trying to extend TableNode by overriding it with my CustomTableNode that will include some properties for the entire table. Based on that properties the class attribute will be changes (some classes added to the table element)

Everything works fine so far except TableObserver. It doesn't include attributes or attributeFilter options, so it doesn't react on any class changes on table element.

Would it be possible to add attributes into the options? I am not too familiar with details and may miss some caveats.

observer.observe(tableElement, {
childList: true,
subtree: true,
});

P.S. I've tried to enabled updateDOM in the CustomTableNode but it seems to break observer in some way, selection and some other stuff start to work flaky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant