Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Fixes bug with backdrop click #5911

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

no1lov3sme
Copy link

Fixes bug when selecting text and moving mouse away from modal container to the backdrop and releasing mouse button.

Fixes bug with text selection and mouse up event on modal backdrop.
@icfantv
Copy link
Contributor

icfantv commented May 20, 2016

If you would like us to consider merging this, you will need to add tests and correctly fix the issue that caused the build to break.

@wesleycho
Copy link
Contributor

The implementation should be changed to something similar to this from Bootstrap

@icfantv
Copy link
Contributor

icfantv commented Jun 13, 2016

@no1lov3sme, do you intend on fixing the issues with this PR or shall I close it? Thanks.

@no1lov3sme
Copy link
Author

@icfantv, please specify ehat should be fixed. I've already refactored the code in my last commit; tests are passing.

@icfantv
Copy link
Contributor

icfantv commented Jun 13, 2016

@no1lov3sme, see the comment from @wesleycho.

var selector = 'body > div.modal';
$document.find(selector).mousedown();
$document.find(selector).mouseup();
$document.find(selector).click();
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be in a separate test - you could just copy/paste the test this is modifying, and revert the original test.

@alexandernst
Copy link

Any news on this?

@pzpzpzp1
Copy link

there's a line 'element.one'... is that supposed to be element.on?

@wesleycho
Copy link
Contributor

element.one is correct - it is intended to only be bound once.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants