bnstooltips 1.18.1 → 1.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -8055,7 +8055,10 @@ function ItemUpgradeEffects(props) {
8055
8055
  if (props.client) {
8056
8056
  if (fresh) {
8057
8057
  return (React.createElement("div", { className: "ItemTooltip_optionPadding" },
8058
- React.createElement("span", { className: "ItemTooltip_showButton", onClick: LoadEffectOptions }, "Load Upgrade effects")));
8058
+ React.createElement("span", { className: "ItemTooltip_showButton", onClick: function (e) {
8059
+ e.stopPropagation();
8060
+ LoadEffectOptions();
8061
+ } }, "Load Upgrade effects")));
8059
8062
  }
8060
8063
  else if (effectData != undefined) {
8061
8064
  return (React.createElement("div", { className: "ItemTooltip_optionPadding" },
@@ -8083,7 +8086,7 @@ function ItemTooltip(_a) {
8083
8086
  var _k = useState("advanced-1"), jobstyle = _k[0], setJobstyle = _k[1];
8084
8087
  var _l = useState(), client = _l[0], setClient = _l[1];
8085
8088
  useEffect(function () {
8086
- if (offline)
8089
+ if (offline && !showUpgradeEffects)
8087
8090
  return;
8088
8091
  if (clientProp == undefined) {
8089
8092
  (function () { return __awaiter(_this, void 0, void 0, function () {
@@ -8096,7 +8099,7 @@ function ItemTooltip(_a) {
8096
8099
  else {
8097
8100
  setClient(clientProp);
8098
8101
  }
8099
- }, [offline]);
8102
+ }, [offline, showUpgradeEffects]);
8100
8103
  useEffect(function () {
8101
8104
  if (jobstyleOverride != undefined) {
8102
8105
  setJobstyle(jobstyleOverride);