fixes #13816 Modal dialog closes when dragging and releasing mouse button outside dialog
Merge pull request #14724 from twbs/fat-13816

fixes #13816 Modal dialog closes when dragging and releasing mouse button outside dialog