Please help me to see where there is something wrong with this example. Click the button open always need to click the second time to let the pop-up box display again, hope to point out the key problem, thank you!
https://jsfiddle.net/HUANGJK/.
reference case
http://jsrun.net/BkpKp/edit