From 2ecac68f01f3d9b14a01572dec2c93e89f124ff8 Mon Sep 17 00:00:00 2001 From: Arno Fortelny Date: Tue, 4 Aug 2015 19:36:48 -0400 Subject: [PATCH] [fixed] Modal uses provided className again --- src/Modal.js | 2 +- test/ModalSpec.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Modal.js b/src/Modal.js index ed4db06466..7241f39002 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -163,7 +163,7 @@ const Modal = React.createClass({ let modal = ( { this.renderContent() } diff --git a/test/ModalSpec.js b/test/ModalSpec.js index 99affa0485..9d5ceb0178 100644 --- a/test/ModalSpec.js +++ b/test/ModalSpec.js @@ -130,6 +130,19 @@ describe('Modal', function () { ReactTestUtils.Simulate.click(button); }); + it('Should pass className to the dialog', function () { + let noOp = function () {}; + let instance = render( + + Message + + , mountPoint); + + let dialog = React.findDOMNode(instance.refs.dialog); + + assert.ok(dialog.className.match(/\bmymodal\b/)); + }); + it('Should use bsClass on the dialog', function () { let noOp = function () {}; let instance = render(