Fix interacting with elements within modal dialog. Fixes #64.