@capgo/capacitor-sheets 8.0.3 → 8.0.5

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.
@@ -769,13 +769,15 @@ var SheetController = class {
769
769
  this.root = root;
770
770
  this.options = readOptionsFromElement(root);
771
771
  this.id = this.options.componentId || root.id || createId("cap-sheet");
772
- if (!root.id) root.id = this.id;
773
772
  }
774
773
  /** Connect the controller to the DOM and initialize current state. */
775
774
  connect() {
776
775
  if (this.connected) return;
777
776
  this.connected = true;
778
- this.configure(readOptionsFromElement(this.root));
777
+ const elementOptions = readOptionsFromElement(this.root);
778
+ this.id = elementOptions.componentId || this.root.id || this.id;
779
+ if (!this.root.id) this.root.id = this.id;
780
+ this.configure(elementOptions);
779
781
  const nextPresented = this.options.presented ?? this.options.defaultPresented ?? false;
780
782
  this.activeDetent = this.resolveInitialDetent();
781
783
  this.presented = nextPresented;