@@ -3172,11 +3172,12 @@ return /******/ (function(modules) { // webpackBootstrap
3172
3172
3173
3173
return {
3174
3174
componentDidMount: function() {
3175
- if(! this.handleClickOutside)
3175
+ if(typeof this.handleClickOutside !== "function" )
3176
3176
throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");
3177
3177
3178
3178
var fn = this.__outsideClickHandler = (function(localNode, eventHandler) {
3179
3179
return function(evt) {
3180
+ evt.stopPropagation();
3180
3181
var source = evt.target;
3181
3182
var found = false;
3182
3183
// If source=local then this event came from "somewhere"
@@ -3231,7 +3232,7 @@ return /******/ (function(modules) { // webpackBootstrap
3231
3232
* Can be called to explicitly disable event listening
3232
3233
* for clicks and touches outside of this element.
3233
3234
*/
3234
- disableOnClickOutside: function(fn ) {
3235
+ disableOnClickOutside: function() {
3235
3236
var fn = this.__outsideClickHandler;
3236
3237
document.removeEventListener("mousedown", fn);
3237
3238
document.removeEventListener("touchstart", fn);
@@ -7399,11 +7400,11 @@ return /******/ (function(modules) { // webpackBootstrap
7399
7400
var _again = true;_function: while (_again) {
7400
7401
var object = _x,
7401
7402
property = _x2,
7402
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
7403
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
7403
7404
var parent = Object.getPrototypeOf(object);if (parent === null) {
7404
7405
return undefined;
7405
7406
} else {
7406
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
7407
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
7407
7408
}
7408
7409
} else if ("value" in desc) {
7409
7410
return desc.value;
@@ -9331,12 +9332,14 @@ return /******/ (function(modules) { // webpackBootstrap
9331
9332
Licensed under the MIT License (MIT), see
9332
9333
http://jedwatson.github.io/classnames
9333
9334
*/
9335
+ /* global define */
9334
9336
9335
9337
(function () {
9336
9338
'use strict';
9337
9339
9338
- function classNames () {
9340
+ var hasOwn = {}.hasOwnProperty;
9339
9341
9342
+ function classNames () {
9340
9343
var classes = '';
9341
9344
9342
9345
for (var i = 0; i < arguments.length; i++) {
@@ -9345,15 +9348,13 @@ return /******/ (function(modules) { // webpackBootstrap
9345
9348
9346
9349
var argType = typeof arg;
9347
9350
9348
- if ('string' === argType || 'number' === argType ) {
9351
+ if (argType === 'string' || argType === 'number' ) {
9349
9352
classes += ' ' + arg;
9350
-
9351
9353
} else if (Array.isArray(arg)) {
9352
9354
classes += ' ' + classNames.apply(null, arg);
9353
-
9354
- } else if ('object' === argType) {
9355
+ } else if (argType === 'object') {
9355
9356
for (var key in arg) {
9356
- if (arg.hasOwnProperty( key) && arg[key]) {
9357
+ if (hasOwn.call(arg, key) && arg[key]) {
9357
9358
classes += ' ' + key;
9358
9359
}
9359
9360
}
@@ -9365,15 +9366,14 @@ return /******/ (function(modules) { // webpackBootstrap
9365
9366
9366
9367
if (typeof module !== 'undefined' && module.exports) {
9367
9368
module.exports = classNames;
9368
- } else if (true){
9369
- // AMD. Register as an anonymous module.
9369
+ } else if (true) {
9370
+ // register as 'classnames', consistent with npm package name
9370
9371
!(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
9371
9372
return classNames;
9372
9373
}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
9373
9374
} else {
9374
9375
window.classNames = classNames;
9375
9376
}
9376
-
9377
9377
}());
9378
9378
9379
9379
@@ -9408,11 +9408,11 @@ return /******/ (function(modules) { // webpackBootstrap
9408
9408
var _again = true;_function: while (_again) {
9409
9409
var object = _x,
9410
9410
property = _x2,
9411
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
9411
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
9412
9412
var parent = Object.getPrototypeOf(object);if (parent === null) {
9413
9413
return undefined;
9414
9414
} else {
9415
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
9415
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
9416
9416
}
9417
9417
} else if ("value" in desc) {
9418
9418
return desc.value;
@@ -9515,11 +9515,11 @@ return /******/ (function(modules) { // webpackBootstrap
9515
9515
var _again = true;_function: while (_again) {
9516
9516
var object = _x,
9517
9517
property = _x2,
9518
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
9518
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
9519
9519
var parent = Object.getPrototypeOf(object);if (parent === null) {
9520
9520
return undefined;
9521
9521
} else {
9522
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
9522
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
9523
9523
}
9524
9524
} else if ("value" in desc) {
9525
9525
return desc.value;
@@ -10018,11 +10018,11 @@ return /******/ (function(modules) { // webpackBootstrap
10018
10018
var _again = true;_function: while (_again) {
10019
10019
var object = _x,
10020
10020
property = _x2,
10021
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10021
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10022
10022
var parent = Object.getPrototypeOf(object);if (parent === null) {
10023
10023
return undefined;
10024
10024
} else {
10025
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
10025
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
10026
10026
}
10027
10027
} else if ('value' in desc) {
10028
10028
return desc.value;
@@ -10237,11 +10237,11 @@ return /******/ (function(modules) { // webpackBootstrap
10237
10237
var _again = true;_function: while (_again) {
10238
10238
var object = _x,
10239
10239
property = _x2,
10240
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10240
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10241
10241
var parent = Object.getPrototypeOf(object);if (parent === null) {
10242
10242
return undefined;
10243
10243
} else {
10244
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
10244
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
10245
10245
}
10246
10246
} else if ('value' in desc) {
10247
10247
return desc.value;
@@ -10524,11 +10524,11 @@ return /******/ (function(modules) { // webpackBootstrap
10524
10524
var _again = true;_function: while (_again) {
10525
10525
var object = _x,
10526
10526
property = _x2,
10527
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10527
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10528
10528
var parent = Object.getPrototypeOf(object);if (parent === null) {
10529
10529
return undefined;
10530
10530
} else {
10531
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
10531
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
10532
10532
}
10533
10533
} else if ('value' in desc) {
10534
10534
return desc.value;
@@ -10636,11 +10636,11 @@ return /******/ (function(modules) { // webpackBootstrap
10636
10636
var _again = true;_function: while (_again) {
10637
10637
var object = _x,
10638
10638
property = _x2,
10639
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10639
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
10640
10640
var parent = Object.getPrototypeOf(object);if (parent === null) {
10641
10641
return undefined;
10642
10642
} else {
10643
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
10643
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
10644
10644
}
10645
10645
} else if ('value' in desc) {
10646
10646
return desc.value;
@@ -11010,6 +11010,12 @@ return /******/ (function(modules) { // webpackBootstrap
11010
11010
}
11011
11011
},
11012
11012
11013
+ clearBodyScroll: function updateBodyScroll() {
11014
+ if (window && document && document.body) {
11015
+ document.body.style.overflow = 'inherit';
11016
+ }
11017
+ },
11018
+
11013
11019
handleModalClick: function handleModalClick(event) {
11014
11020
if (event && event.stopPropagation) {
11015
11021
event.stopPropagation();
@@ -11033,7 +11039,7 @@ return /******/ (function(modules) { // webpackBootstrap
11033
11039
style: { pointerEvents: 'inherit' },
11034
11040
onClick: this.isPrompt() ? undefined : this.closeModal
11035
11041
}, _react2['default'].createElement('div', {
11036
- role: 'dialog ',
11042
+ role: 'document ',
11037
11043
className: 'slds-modal__container',
11038
11044
onClick: this.handleModalClick
11039
11045
}, this.headerComponent(), _react2['default'].createElement('div', { className: 'slds-modal__content' }, this.props.children), this.footerComponent()));
@@ -11096,7 +11102,7 @@ return /******/ (function(modules) { // webpackBootstrap
11096
11102
};
11097
11103
11098
11104
if (hasHeader) {
11099
- header = _react2['default'].createElement('div', { className: (0, _classnames2['default'])(headerClass) }, this.props.toast, _react2['default'].createElement('h2', { className: (0, _classnames2['default'])(titleClass) }, this.props.title), this.props.tagline ? _react2['default'].createElement('p', { className: 'slds-m-top--x-small' }, this.props.tagline) : null, _react2['default'].createElement(_SLDSButton2['default'], { label: 'Close', variant: 'icon-inverse', iconName: 'close', iconSize: 'large', className: 'slds-modal__close', onClick: this.closeModal }) );
11105
+ header = _react2['default'].createElement('div', { className: (0, _classnames2['default'])(headerClass) }, _react2['default'].createElement(_SLDSButton2['default'], { label: 'Close', variant: 'icon-inverse', iconName: 'close', iconSize: 'large', className: 'slds-modal__close', onClick: this.closeModal }), this. props.toast, _react2['default'].createElement('h2', { className: (0, _classnames2['default'])(titleClass) }, this.props.title), this.props.tagline ? _react2['default'].createElement('p', { className: 'slds-m-top--x-small' }, this.props.tagline) : null);
11100
11106
} else {
11101
11107
header = _react2['default'].createElement('div', { style: { position: 'relative' } }, _react2['default'].createElement(_SLDSButton2['default'], { label: 'Close', variant: 'icon-inverse', iconName: 'close', iconSize: 'large', className: 'slds-modal__close', onClick: this.closeModal }));
11102
11108
}
@@ -11124,6 +11130,10 @@ return /******/ (function(modules) { // webpackBootstrap
11124
11130
}
11125
11131
}
11126
11132
}
11133
+ },
11134
+
11135
+ componentWillUnmount: function componentWillUnmount() {
11136
+ this.clearBodyScroll();
11127
11137
}
11128
11138
11129
11139
});
@@ -11203,11 +11213,11 @@ return /******/ (function(modules) { // webpackBootstrap
11203
11213
var _again = true;_function: while (_again) {
11204
11214
var object = _x,
11205
11215
property = _x2,
11206
- receiver = _x3;desc = parent = getter = undefined; _again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
11216
+ receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
11207
11217
var parent = Object.getPrototypeOf(object);if (parent === null) {
11208
11218
return undefined;
11209
11219
} else {
11210
- _x = parent;_x2 = property;_x3 = receiver;_again = true;continue _function;
11220
+ _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined; continue _function;
11211
11221
}
11212
11222
} else if ("value" in desc) {
11213
11223
return desc.value;
0 commit comments