@@ -3172,11 +3172,12 @@ return /******/ (function(modules) { // webpackBootstrap
31723172
31733173 return {
31743174 componentDidMount: function() {
3175- if(! this.handleClickOutside)
3175+ if(typeof this.handleClickOutside !== "function" )
31763176 throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");
31773177
31783178 var fn = this.__outsideClickHandler = (function(localNode, eventHandler) {
31793179 return function(evt) {
3180+ evt.stopPropagation();
31803181 var source = evt.target;
31813182 var found = false;
31823183 // If source=local then this event came from "somewhere"
@@ -3231,7 +3232,7 @@ return /******/ (function(modules) { // webpackBootstrap
32313232 * Can be called to explicitly disable event listening
32323233 * for clicks and touches outside of this element.
32333234 */
3234- disableOnClickOutside: function(fn ) {
3235+ disableOnClickOutside: function() {
32353236 var fn = this.__outsideClickHandler;
32363237 document.removeEventListener("mousedown", fn);
32373238 document.removeEventListener("touchstart", fn);
@@ -7399,11 +7400,11 @@ return /******/ (function(modules) { // webpackBootstrap
73997400 var _again = true;_function: while (_again) {
74007401 var object = _x,
74017402 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) {
74037404 var parent = Object.getPrototypeOf(object);if (parent === null) {
74047405 return undefined;
74057406 } 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;
74077408 }
74087409 } else if ("value" in desc) {
74097410 return desc.value;
@@ -9331,12 +9332,14 @@ return /******/ (function(modules) { // webpackBootstrap
93319332 Licensed under the MIT License (MIT), see
93329333 http://jedwatson.github.io/classnames
93339334 */
9335+ /* global define */
93349336
93359337 (function () {
93369338 'use strict';
93379339
9338- function classNames () {
9340+ var hasOwn = {}.hasOwnProperty;
93399341
9342+ function classNames () {
93409343 var classes = '';
93419344
93429345 for (var i = 0; i < arguments.length; i++) {
@@ -9345,15 +9348,13 @@ return /******/ (function(modules) { // webpackBootstrap
93459348
93469349 var argType = typeof arg;
93479350
9348- if ('string' === argType || 'number' === argType ) {
9351+ if (argType === 'string' || argType === 'number' ) {
93499352 classes += ' ' + arg;
9350-
93519353 } else if (Array.isArray(arg)) {
93529354 classes += ' ' + classNames.apply(null, arg);
9353-
9354- } else if ('object' === argType) {
9355+ } else if (argType === 'object') {
93559356 for (var key in arg) {
9356- if (arg.hasOwnProperty( key) && arg[key]) {
9357+ if (hasOwn.call(arg, key) && arg[key]) {
93579358 classes += ' ' + key;
93589359 }
93599360 }
@@ -9365,15 +9366,14 @@ return /******/ (function(modules) { // webpackBootstrap
93659366
93669367 if (typeof module !== 'undefined' && module.exports) {
93679368 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
93709371 !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
93719372 return classNames;
93729373 }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
93739374 } else {
93749375 window.classNames = classNames;
93759376 }
9376-
93779377 }());
93789378
93799379
@@ -9408,11 +9408,11 @@ return /******/ (function(modules) { // webpackBootstrap
94089408 var _again = true;_function: while (_again) {
94099409 var object = _x,
94109410 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) {
94129412 var parent = Object.getPrototypeOf(object);if (parent === null) {
94139413 return undefined;
94149414 } 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;
94169416 }
94179417 } else if ("value" in desc) {
94189418 return desc.value;
@@ -9515,11 +9515,11 @@ return /******/ (function(modules) { // webpackBootstrap
95159515 var _again = true;_function: while (_again) {
95169516 var object = _x,
95179517 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) {
95199519 var parent = Object.getPrototypeOf(object);if (parent === null) {
95209520 return undefined;
95219521 } 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;
95239523 }
95249524 } else if ("value" in desc) {
95259525 return desc.value;
@@ -10018,11 +10018,11 @@ return /******/ (function(modules) { // webpackBootstrap
1001810018 var _again = true;_function: while (_again) {
1001910019 var object = _x,
1002010020 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) {
1002210022 var parent = Object.getPrototypeOf(object);if (parent === null) {
1002310023 return undefined;
1002410024 } 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;
1002610026 }
1002710027 } else if ('value' in desc) {
1002810028 return desc.value;
@@ -10237,11 +10237,11 @@ return /******/ (function(modules) { // webpackBootstrap
1023710237 var _again = true;_function: while (_again) {
1023810238 var object = _x,
1023910239 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) {
1024110241 var parent = Object.getPrototypeOf(object);if (parent === null) {
1024210242 return undefined;
1024310243 } 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;
1024510245 }
1024610246 } else if ('value' in desc) {
1024710247 return desc.value;
@@ -10524,11 +10524,11 @@ return /******/ (function(modules) { // webpackBootstrap
1052410524 var _again = true;_function: while (_again) {
1052510525 var object = _x,
1052610526 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) {
1052810528 var parent = Object.getPrototypeOf(object);if (parent === null) {
1052910529 return undefined;
1053010530 } 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;
1053210532 }
1053310533 } else if ('value' in desc) {
1053410534 return desc.value;
@@ -10636,11 +10636,11 @@ return /******/ (function(modules) { // webpackBootstrap
1063610636 var _again = true;_function: while (_again) {
1063710637 var object = _x,
1063810638 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) {
1064010640 var parent = Object.getPrototypeOf(object);if (parent === null) {
1064110641 return undefined;
1064210642 } 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;
1064410644 }
1064510645 } else if ('value' in desc) {
1064610646 return desc.value;
@@ -11010,6 +11010,12 @@ return /******/ (function(modules) { // webpackBootstrap
1101011010 }
1101111011 },
1101211012
11013+ clearBodyScroll: function updateBodyScroll() {
11014+ if (window && document && document.body) {
11015+ document.body.style.overflow = 'inherit';
11016+ }
11017+ },
11018+
1101311019 handleModalClick: function handleModalClick(event) {
1101411020 if (event && event.stopPropagation) {
1101511021 event.stopPropagation();
@@ -11033,7 +11039,7 @@ return /******/ (function(modules) { // webpackBootstrap
1103311039 style: { pointerEvents: 'inherit' },
1103411040 onClick: this.isPrompt() ? undefined : this.closeModal
1103511041 }, _react2['default'].createElement('div', {
11036- role: 'dialog ',
11042+ role: 'document ',
1103711043 className: 'slds-modal__container',
1103811044 onClick: this.handleModalClick
1103911045 }, this.headerComponent(), _react2['default'].createElement('div', { className: 'slds-modal__content' }, this.props.children), this.footerComponent()));
@@ -11096,7 +11102,7 @@ return /******/ (function(modules) { // webpackBootstrap
1109611102 };
1109711103
1109811104 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);
1110011106 } else {
1110111107 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 }));
1110211108 }
@@ -11124,6 +11130,10 @@ return /******/ (function(modules) { // webpackBootstrap
1112411130 }
1112511131 }
1112611132 }
11133+ },
11134+
11135+ componentWillUnmount: function componentWillUnmount() {
11136+ this.clearBodyScroll();
1112711137 }
1112811138
1112911139 });
@@ -11203,11 +11213,11 @@ return /******/ (function(modules) { // webpackBootstrap
1120311213 var _again = true;_function: while (_again) {
1120411214 var object = _x,
1120511215 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) {
1120711217 var parent = Object.getPrototypeOf(object);if (parent === null) {
1120811218 return undefined;
1120911219 } 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;
1121111221 }
1121211222 } else if ("value" in desc) {
1121311223 return desc.value;
0 commit comments