jquense / react-bootstrap-modal

React port of jschr's better bootstrap modals
Other
89 stars 51 forks source link

Cannot read property 'modals' of undefined #32

Closed peebles closed 7 years ago

peebles commented 7 years ago

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);
};
peebles commented 7 years ago

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?

adanarchila commented 7 years ago

I think this was patched here: https://github.com/jquense/react-bootstrap-modal/issues/28 but they didn't build a release :(

atis-- commented 7 years ago

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');

jquense commented 7 years ago

fixed and released