Description
if the element failed to initialize (this._element never being set), proceeding with constructor will result in errors, the first one being undefined is not an object (evaluating 'this._config.backdrop') in _initializeBackDrop .
Motivation & Context
i have issues in my bug tracker :-)
see https://github.com/twbs/bootstrap/issues/37305 for context
Type of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Refactoring (non-breaking change) -
Breaking change (fix or feature that would change existing functionality)
Checklist
-
I have read the contributing guidelines -
My code follows the code style of the project (using npm run lint
) -
My change introduces changes to the documentation -
I have updated the documentation accordingly -
I have added tests to cover my changes -
All new and existing tests passed
i didn't run the unit tests because i made the edit live on github, but if you consider the change, i'd be happy to run them since in quite sure it doesn't break anything :-)
Live previews
not necessary