easysoft / easysoft/zui

1.9.1版本modal show的问题

Open
#167 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
2.8k
Forks
678
Avg merge
6d 21h
Merged PRs (30d)
7

Description

新版本的modal调整了这里一处逻辑
↓↓↓
https://github.com/easysoft/zui/commit/1a030d6f6611b3713bc5c901639c79d0ac209913
↑↑↑↑
这个调整了影响某些写法的使用,这个是出于啥原因调整了呢?

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

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

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with commit 1a030d6f6611b3713bc5c901639c79d0ac209913 and inspect the modal event-handling change. Reproduce the reported anchor interaction using the provided #testModal markup, then verify whether one modal can hide while another is shown as in version 1.8.1.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.