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

Fix #16072 - Clicking into input field within dropdown no longer closes the dropdown #16073

Closed
wants to merge 1 commit into from

Conversation

FrenchDilettante
Copy link
Contributor

Fix #16072

@twbs-savage
Copy link

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: f2d61e01195ffc4fa32b32b3ab96cede6c1667f0
Build details: https://travis-ci.org/twbs-savage/bootstrap/builds/54568815

(Please note that this is a fully automated comment.)

@FrenchDilettante
Copy link
Contributor Author

The failure on Travis seems to come from some timeout – do I need to do anything?

@cvrebert
Copy link
Collaborator

@twbs-savage Retry

@cvrebert cvrebert added the js label Mar 16, 2015
@cvrebert
Copy link
Collaborator

Please test <textarea> in the testcase too.

@cvrebert
Copy link
Collaborator

Also, excluding the docs/ and dist/ file changes would be appreciated.

@cvrebert cvrebert added this to the v3.3.5 milestone Mar 16, 2015
@@ -96,6 +96,8 @@

if (!$parent.hasClass('open')) return

if (e && e.type === 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should use == instead of ===, per Jacob's coding style.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@twbs-savage
Copy link

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 164e712459577ef3378b51ffa842ce8ec376d7b1
Build details: https://travis-ci.org/twbs-savage/bootstrap/builds/54847299

(Please note that this is a fully automated comment.)

@cvrebert
Copy link
Collaborator

Looks pretty good to me. We'll just need to squash it into a single commit when merging it.
CC: @XhmikosR @hnrch02 for review

@FrenchDilettante
Copy link
Contributor Author

Do you want me to do it on a separate branch and re-open a PR?

@cvrebert
Copy link
Collaborator

If you know how to squash, just squash and force-push to the same branch. If not, one of us on the Core Team will take care of it.

@FrenchDilettante
Copy link
Contributor Author

Done :)

@twbs-savage
Copy link

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 31a908f
Build details: https://travis-ci.org/twbs-savage/bootstrap/builds/55008405

(Please note that this is a fully automated comment.)

@XhmikosR
Copy link
Member

LGTM

(Damn this style we use is hard to read :/)
On Mar 19, 2015 1:31 PM, "twbs-savage" notifications@github.com wrote:

Tests passed. Automated cross-browser testing via Sauce Labs and Travis
CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 31a908f
31a908f
Build details: https://travis-ci.org/twbs-savage/bootstrap/builds/55008405

(Please note that this is a fully automated
https://github.com/twbs/savage comment.
)


Reply to this email directly or view it on GitHub
#16073 (comment).

@cvrebert cvrebert closed this in fa9d28b Mar 21, 2015
@cvrebert cvrebert changed the title Fix #16072 - Input field in dropdown has an unexpected behaviour Fix #16072 - Clicking into input field within dropdown no longer closes the dropdown Mar 21, 2015
@cvrebert cvrebert mentioned this pull request Mar 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clicking into text input field within dropdown closes the dropdown
4 participants