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 622: Slides that are not fully visible cannot receive focus. #643

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

mariano-formidable
Copy link
Member

@mariano-formidable mariano-formidable commented Jan 21, 2020

Description

This PR is the same as this PR (#642), it's just that the merge target is master.

Fixes #622

} = config;

// Slide width can't be 0
const fullSlideWidth = slideWidth + cellSpacing || 1;
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this so tests would pass because most of our tests don't actually set a slideWidth (because the virtual dom doesn't have one).

@@ -169,3 +170,44 @@ export const handleSelfFocus = e => {
e.currentTarget.focus();
}
};

export const isFullyVisible = (slideIndex, config) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

I also removed positionValue from the passed in arguments since I realized I wasn't even using it 😱

@sarmeyer sarmeyer merged commit 9dde36f into master Jan 21, 2020
@YLemelin09
Copy link

Will this be in a release of it is usable as soon as you merge on master? I have Updated to 4.6.1 and I still can tab passed the visible slides and the it still pushes the right control to the middle of the view like in #622

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.

Using tab to scroll pushes the slider to the left
3 participants