jquense/react-bootstrap-modal

Cannot read property 'modals' of undefined

Closed this issue · 4 comments

I am getting this error in the console:

Modal.js:136Uncaught TypeError: Cannot read property 'modals' of undefined

Due to the following code:

return function (type) {
        return baseIndex[type] + zIndexFactor * (_Modal2.default.manager.modals.length - 1);
};

I notice the code I have (via npm install) is different than the code in master. The npm package is at 3.0.0. Does this need to be bumped?

I think this was patched here: #28 but they didn't build a release :(

jquense should make a new release; meanwhile you can use my build if you want:
npm install --save @atis/react-bootstrap-modal
require('@atis/react-bootstrap-modal');

fixed and released