@khanacademy/wonder-blocks-button
Advanced tools
Comparing version 2.8.2 to 2.8.3
@@ -300,2 +300,3 @@ // @flow | ||
href={href} | ||
target={target} | ||
type={type} | ||
@@ -302,0 +303,0 @@ // If tabIndex is provide to the component we allow |
@@ -577,2 +577,3 @@ import { createElement, Fragment, Component } from 'react'; | ||
href: href, | ||
target: target, | ||
type: type // If tabIndex is provide to the component we allow | ||
@@ -579,0 +580,0 @@ // it to override the tabIndex provide to use by |
@@ -760,3 +760,4 @@ module.exports = | ||
href = _this$props4.href, | ||
skipClientNav = _this$props4.skipClientNav; | ||
skipClientNav = _this$props4.skipClientNav, | ||
target = _this$props4.target; | ||
@@ -770,4 +771,9 @@ if (href) { | ||
} else { | ||
window.location.assign(href); // We don't bother clearing the waiting state, the full page | ||
if (target === "_blank") { | ||
window.open(href, "_blank"); | ||
} else { | ||
window.location.assign(href); | ||
} // We don't bother clearing the waiting state, the full page | ||
// load navigation will do that for us by loading a new page. | ||
} | ||
@@ -1016,2 +1022,3 @@ } | ||
role: _this.props.role, | ||
target: _this.props.target, | ||
"aria-disabled": _this.props.disabled ? "true" : undefined | ||
@@ -1023,2 +1030,3 @@ }), _this.props.children(clickableState)); | ||
role: _this.props.role, | ||
target: _this.props.target, | ||
"aria-disabled": _this.props.disabled ? "true" : undefined | ||
@@ -1051,6 +1059,7 @@ }), _this.props.children(clickableState)); | ||
style = _this$props.style, | ||
target = _this$props.target, | ||
testId = _this$props.testId, | ||
onKeyDown = _this$props.onKeyDown, | ||
onKeyUp = _this$props.onKeyUp, | ||
restProps = _objectWithoutProperties(_this$props, ["href", "onClick", "skipClientNav", "beforeNav", "safeWithNav", "style", "testId", "onKeyDown", "onKeyUp"]); | ||
restProps = _objectWithoutProperties(_this$props, ["href", "onClick", "skipClientNav", "beforeNav", "safeWithNav", "style", "target", "testId", "onKeyDown", "onKeyUp"]); | ||
@@ -1063,2 +1072,3 @@ var ClickableBehavior = getClickableBehavior(href, skipClientNav, this.context.router); | ||
safeWithNav: safeWithNav, | ||
target: target, | ||
onKeyDown: onKeyDown, | ||
@@ -1580,2 +1590,3 @@ onKeyUp: onKeyUp | ||
href: href, | ||
target: target, | ||
type: type // If tabIndex is provide to the component we allow | ||
@@ -1582,0 +1593,0 @@ // it to override the tabIndex provide to use by |
{ | ||
"name": "@khanacademy/wonder-blocks-button", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"design": "v1", | ||
@@ -34,3 +34,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "768de54e6082e80e2faee6ed6af75303d608c01c" | ||
"gitHead": "7aa04017e8c20479e33c5c0d6b59f8bd3f6379e9" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
517741
4403