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

Modal Sometimes Does Not Appear after Multiple Displays in Safari #14254

Closed
jayhaase opened this issue Jul 27, 2014 · 23 comments · Fixed by #14723
Closed

Modal Sometimes Does Not Appear after Multiple Displays in Safari #14254

jayhaase opened this issue Jul 27, 2014 · 23 comments · Fixed by #14723

Comments

@jayhaase
Copy link

Displaying, hiding, and displaying the same modal multiple times will sometimes fail, leaving the modal backdrop fade in place and no modal displayed.

This has been reproduced in Safari.

Steps to reproduce:

  1. Go to this page: http://getbootstrap.com/javascript/#modals
  2. Click on the "Launch modal demo" button 10-20 times.
  3. You have reproduced this error is the dialog does not appear at least once.
@cvrebert
Copy link
Collaborator

I can't seem to reproduce on OS X 10.9.4 with either Chrome or Safari v7.0.5.

Can you confirm that you're using Safari v7.0.5?
Perhaps you could make a screencast demonstrating the problem?

@jayhaase
Copy link
Author

I am using Safari Version 7.0.5 (9537.77.4) on OSX Version 10.9.4 build 13E28.

@cvrebert
Copy link
Collaborator

@jayhaase Okay, any chance of a screencast then?

CC: @hnrch02 Maybe you'll have better luck than me in reproducing the problem?

@jayhaase
Copy link
Author

What is the best way to make a screencast?

@jayhaase
Copy link
Author

Here is a video I recorded showing the absence of the modal during a series of clicks: https://www.dropbox.com/s/f06r7qgyv71l7yf/Modal%20Not%20Appearing%20-%20Small.mov

@cvrebert
Copy link
Collaborator

Do you have any Safari extensions installed, by chance? If yes, have you tried disabling them?

@jayhaase
Copy link
Author

I disabled all my extensions, restarted Safari, and tried again. The same thing happened, the modal did not appear after 6 or so attempts.

@cvrebert
Copy link
Collaborator

Does the problem happen on http://jsfiddle.net/cvrhulu/upzHa/2/show/ too? If yes, please paste the log from the JS console from a session where the problem occurs.

@jayhaase
Copy link
Author

It happened on the third click:

[Log] click (show, line 31)
Object

[Log] show (show, line 31)
Object

[Log] shown (show, line 31)
Object

[Log] hide (show, line 31)
Object

[Log] hidden (show, line 31)
Object

[Log] click (show, line 31)
Object

[Log] show (show, line 31)
Object

[Log] shown (show, line 31)
Object

[Log] hide (show, line 31)
Object

[Log] hidden (show, line 31)
Object

[Log] click (show, line 31)
Object

[Log] show (show, line 31)
Object

[Log] shown (show, line 31)
Object

[Log] hide (show, line 31)
Object

[Log] hidden (show, line 31)
Object

On Jul 27, 2014, at 10:09 PM, Chris Rebert notifications@github.com wrote:

Does the problem happen on http://jsfiddle.net/cvrhulu/upzHa/2/show/ too? If yes, please paste the log from the JS console from a session where the problem occurs.


Reply to this email directly or view it on GitHub.

@jayhaase
Copy link
Author

Here is the log of the last shown object that did not appear.

[Log] shown (show, line 31)
Object
currentTarget: #document
data: undefined
delegateTarget: #document
handleObj: Object
isTrigger: 3
jQuery111002800419663544744: true
namespace: "bs.modal"
namespace_re: /(^|.)bs.(?:.*.|)modal(.|$)/
relatedTarget: button#launcher.btn btn-primary btn-lg
result: undefined
target: div#myModal.modal fade in
timeStamp: 1406517114347
type: "shown"
proto: Object

On Jul 27, 2014, at 10:09 PM, Chris Rebert notifications@github.com wrote:

Does the problem happen on http://jsfiddle.net/cvrhulu/upzHa/2/show/ too? If yes, please paste the log from the JS console from a session where the problem occurs.


Reply to this email directly or view it on GitHub.

@cvrebert cvrebert added the js label Jul 28, 2014
@cvrebert cvrebert added this to the v3.2.1 milestone Jul 28, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Jul 28, 2014

I was able to reproduce this. Very easily, actually.

@hnrch02
Copy link
Collaborator

hnrch02 commented Aug 8, 2014

This seems like a browser bug. All classes are added properly and if I get a case where the modal isn't showing, disabling all the -webkit-transforms shows it. Also, I can interact with all the modal body's content while the modal is seemingly hidden. This includes toggling tooltips and popovers. (I can even see the tooltips and popovers if I set their container option to body.)

@ghost
Copy link

ghost commented Aug 15, 2014

reproduced in Safari 7.0.6.

@cvrebert cvrebert changed the title Modal Sometimes Does Not Appear after Multiple Displays Modal Sometimes Does Not Appear after Multiple Displays in Safari Aug 15, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 8, 2014

@mdo @cvrebert Close this as a can't fix?

@mdo
Copy link
Member

mdo commented Sep 8, 2014

Perhaps it's some transitions not finishing stuff? I dunno. If you can't find a fix or aren't able to reproduce now or in another browser, I'm fine punting.

@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 8, 2014

If I had a fix I would've posted it. Can't reproduce anywhere else than Safari. I'll just assign the "help wanted" label in case anyone wants to inspect this further.

@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 22, 2014

@jayhaase Could you try to reproduce using Safari 7.1? I'm no longer able to.

@jayclockwork
Copy link

I'm not ready to install Safari 7.1 yet. I will try as soon as it comes out officially.

@cvrebert
Copy link
Collaborator

@jayclockwork It is officially out now.

@jayclockwork
Copy link

I am unable to recreate the bug using 7.1. It seems to be fixed in 7.1.

@fat fat closed this as completed in #14723 Oct 3, 2014
fat added a commit that referenced this issue Oct 3, 2014
fix #14254  Modal Sometimes Does Not Appear after Multiple Displays in S...
Saranya-Raaj pushed a commit to Saranya-Raaj/bootstrap that referenced this issue Oct 9, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
@buttre
Copy link

buttre commented May 24, 2015

I create two model , but the second model can't show in Browser , how to make the second model show in my browser?

@laopao
Copy link

laopao commented Jun 21, 2016

摸态框中内容怎么不能点击呢

@zaxh
Copy link

zaxh commented Aug 21, 2017

移动端页面中使用bootstrap modal 创建了两个模态框,苹果手机中第二个显示是被遮罩层盖住的,为什么?怎么解决?

@twbs twbs locked and limited conversation to collaborators Aug 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants