smoothly 1.0.0-alpha.205 → 1.0.0-alpha.206

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.
@@ -6143,6 +6143,7 @@ const SmoothlyInputReset = class {
6143
6143
  this.smoothlyInputLoad.emit(parent => {
6144
6144
  if (Editable.Element.type.is(parent)) {
6145
6145
  this.parent = parent;
6146
+ this.readonlyAtLoad = parent.readonly;
6146
6147
  parent.listen("changed", async (p) => {
6147
6148
  if (Input.is(p)) {
6148
6149
  this.disabled = p.readonly ? true : !p.changed;
@@ -6159,7 +6160,7 @@ const SmoothlyInputReset = class {
6159
6160
  clickHandler() {
6160
6161
  var _a, _b;
6161
6162
  (_a = this.parent) === null || _a === void 0 ? void 0 : _a.reset();
6162
- (_b = this.parent) === null || _b === void 0 ? void 0 : _b.edit(false);
6163
+ this.readonlyAtLoad && ((_b = this.parent) === null || _b === void 0 ? void 0 : _b.edit(false));
6163
6164
  }
6164
6165
  render() {
6165
6166
  return (index.h(Button, { disabled: this.disabled, type: "button" }, index.h("slot", null)));