armstrong-react
Advanced tools
Comparing version
@@ -68,3 +68,3 @@ "use strict"; | ||
this.portalNode.classList.add('dialog-layer'); | ||
if (this.props.closeOnBackgroundClick) { | ||
if (props.closeOnBackgroundClick) { | ||
this.portalNode.onclick = function (e) { | ||
@@ -77,4 +77,4 @@ var clickedElement = e.target; | ||
} | ||
if (this.props.layerClass) { | ||
this.portalNode.classList.add(this.props.layerClass); | ||
if (props.layerClass) { | ||
this.portalNode.classList.add(props.layerClass); | ||
} | ||
@@ -116,10 +116,10 @@ node.id = this.dialogId || form_1.generateUniqueId(function (u) { return "dialog-layer-" + u; }); | ||
var _this = this; | ||
var style = { width: this.props.width || "500px", height: this.props.height || "auto" }; | ||
return (React.createElement("div", { className: "dialog" + (this.props.className ? " " + this.props.className : ''), style: style, id: this.dialogId }, | ||
!this.props.title && | ||
var style = { width: newProps.width || "500px", height: newProps.height || "auto" }; | ||
return (React.createElement("div", { className: "dialog" + (newProps.className ? " " + newProps.className : ''), style: style, id: this.dialogId }, | ||
!newProps.title && | ||
React.createElement("div", { className: "dialog-close-button-no-title", onClick: function () { return _this.xClicked(); } }, | ||
React.createElement(icon_1.Icon, { icon: icon_1.Icon.Icomoon.cross })), | ||
this.props.title && | ||
newProps.title && | ||
React.createElement("div", { className: "dialog-header" }, | ||
this.props.title, | ||
newProps.title, | ||
React.createElement("div", { className: "dialog-close-button", onClick: function () { return _this.xClicked(); } }, | ||
@@ -126,0 +126,0 @@ React.createElement(icon_1.Icon, { icon: icon_1.Icon.Icomoon.cross }))), |
{ | ||
"name": "armstrong-react", | ||
"version": "2.4.10", | ||
"version": "2.4.11", | ||
"description": "Rocketmakers Armstrong library of React components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
726906
-0.01%