@rpg-engine/long-bow 0.2.81 → 0.2.86

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.
@@ -33144,10 +33144,8 @@ var CraftBook = function CraftBook(_ref) {
33144
33144
  name = modifiedWords.join(' ');
33145
33145
  return name;
33146
33146
  };
33147
- var handleClick = function handleClick() {
33148
- var element = document.querySelector("input[name='test']:checked");
33149
- var elementValue = element.value;
33150
- setCraftItem(elementValue);
33147
+ var handleClick = function handleClick(value) {
33148
+ setCraftItem(value);
33151
33149
  };
33152
33150
  return React.createElement(DraggableContainer, {
33153
33151
  type: RPGUIContainerTypes.Framed,
@@ -33183,9 +33181,15 @@ var CraftBook = function CraftBook(_ref) {
33183
33181
  type: "radio",
33184
33182
  value: option.name,
33185
33183
  name: "test",
33186
- disabled: !option.canCraft
33184
+ disabled: !option.canCraft,
33185
+ checked: craftItem === option.key,
33186
+ onChange: function onChange() {
33187
+ return handleClick(option.key);
33188
+ }
33187
33189
  }), React.createElement("label", {
33188
- onClick: handleClick,
33190
+ onClick: function onClick() {
33191
+ return handleClick(option.key);
33192
+ },
33189
33193
  style: {
33190
33194
  display: 'flex',
33191
33195
  alignItems: 'center'
@@ -34317,7 +34321,8 @@ var ListMenu = function ListMenu(_ref) {
34317
34321
  }, options.map(function (params, index) {
34318
34322
  return React.createElement(ListElement$1, {
34319
34323
  key: (params == null ? void 0 : params.id) || index,
34320
- onClick: function onClick() {
34324
+ onClick: function onClick(e) {
34325
+ e.stopPropagation();
34321
34326
  onSelected(params == null ? void 0 : params.id);
34322
34327
  }
34323
34328
  }, (params == null ? void 0 : params.text) || 'No text');