Skip to content

Commit f695a08

Browse files
committed
ignore some events
1 parent 083d37b commit f695a08

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

README.md

+3-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
React Stack Modal
2+
React Stack Modal(WIP)
33
----
44

55
Demo http://ui.talk.ai/react-stack-modal
@@ -8,22 +8,9 @@ Demo http://ui.talk.ai/react-stack-modal
88

99
### Develop
1010

11-
You need a static file server for the HTML files. Personally I suggest using Nginx.
11+
Project template:
1212

13-
```bash
14-
npm i
15-
gulp dev
16-
```
17-
18-
Build (Pack and optimize assets, add hashes and put entries in `index.html`):
19-
20-
```bash
21-
NODE_ENV=static gulp build # not minified
22-
npm run static
23-
24-
NODE_ENV=ws gulp build
25-
npm run ws
26-
```
13+
https://github.com/teambition/coffee-webpack-starter
2714

2815
### License
2916

src/modal-stack.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ module.exports = React.createClass
4444
@props.onEsc @props.modals, event
4545

4646
onWindowClick: (event) ->
47+
if event.target is window
48+
# events mocked by lite-dropdown, lite-popover, don't respond
49+
return
4750
@props.onWindowClick @props.modals, event
4851

4952
onContentClick: (modal, event) ->

0 commit comments

Comments
 (0)