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

Issue/107 shadow root disengage #108

Closed

Conversation

jordanaustin
Copy link

Fix for undo inert on all elements, including shadow-root. Fixes: #107

Add element to interElementsCache when inert is set and remove when undo is called. This will work for MutationsObserver as well since the same function will be called
@@ -20,11 +20,19 @@ import queryFocusable from '../query/focusable';
import elementDisabled from '../element/disabled';
import {getParentComparator} from '../util/compare-position';

let inertElementSet = [];
Copy link
Member

Choose a reason for hiding this comment

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

you can have multiple instances of InertSubtree and the list of elements belongs on that class.

Copy link
Author

Choose a reason for hiding this comment

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

Oh, duh! See updated diff.

@rodneyrehm
Copy link
Member

right, looking better now :)

Shame we have to find a solution for #95 before PRs like yours are actually tested on Travis :(

Do you want to take care of the other tasks in that issue as well?

@jordanaustin
Copy link
Author

Oh, #95 is blocking all PRs? Bummer.

The MutationObserver piece seems like a separate bug to me since it's never actually been observing shadow-root items. I'm happy to work on this issue as well though.

What's your thought about me adding a new issue to define the shadow-root MutationObserver issue?

@rodneyrehm
Copy link
Member

Oh, #95 is blocking all PRs? Bummer.

not all, only the ones not originating from this repo. (which is basically everyone but Marcy and me…)
I'll try giving that issue a shot today…

What's your thought about me adding a new issue to define the shadow-root MutationObserver issue?

I don't care either way…

@rodneyrehm
Copy link
Member

ok, "solved" the travis issue. please sync your fork and rebase your branch on master (thereby squashing your 3 commits into 1). Then you'll have to force push. After that your branch should be tested on Travis.

You can then have a look at adding a test for your changes…

@jordanaustin
Copy link
Author

I'm on it.

@rodneyrehm
Copy link
Member

I've pulled your changes into issue/107-maintain-shadows (maintaining your authorship) and resolved a few things. once the tests pass, I'll merge that branch and close this PR. thank you! :)

@rodneyrehm rodneyrehm closed this Feb 21, 2016
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