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

1.9.1版本modal show的问题 #167

Open
jiaminghai opened this issue Apr 3, 2020 · 2 comments
Open

1.9.1版本modal show的问题 #167

jiaminghai opened this issue Apr 3, 2020 · 2 comments
Labels

Comments

@jiaminghai
Copy link

jiaminghai commented Apr 3, 2020

新版本的modal调整了这里一处逻辑
↓↓↓
1a030d6
↑↑↑↑
这个调整了影响某些写法的使用,这个是出于啥原因调整了呢?

我看1.8.1的官方编译包这个还是原来的处理逻辑,到了1.9.1就改变了。
最新bootstrap官方的modal在这里的处理逻辑还是和原来一致的。

原来的处理逻辑在当前显示状态的modal body这么写一个锚点超链接点击后可以实现隐藏当前modal,显示另外一个modal,类似下面这样子。
<a href="#testModal" data-toggle="modal" data-dismiss="modal">测试</a>

现在不行哈。
e.stopPropagation();这里终止派发了。

@jiaminghai
Copy link
Author

@catouse

@catouse
Copy link
Collaborator

catouse commented Apr 10, 2020

在我们的使用过程中,有时会在一个 modal 中显示另一个 modal,如果不停止派发,会导致关闭内部 modal 的时候把父级 modal 也关闭了。
不过你列出的情况确实存在,当时没有考虑到,此 issue 暂时保留,我们继续考虑如何解决这个问题。

@catouse catouse added the bug label Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants