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

can-slot should not bind to to focus event #558

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cherifGsoul
Copy link
Member

Closes canjs/canjs#5511

For performance reasons, can-slot should not bind to focus event.

bar: 'bar'
});

var template = stache('<can-slot id="slot" focused:from="foo">{{bar}}</can-slot>' );
Copy link
Contributor

Choose a reason for hiding this comment

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

So what does focused:from="foo" do now in this case? Set the focused property on the <can-slot> element to false?

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.

focused:from bindings on can-slot cause DOM focus method to be called, causing layout thrashing
2 participants