diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 35ebabf4..f10aebc6 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -10,9 +10,9 @@ New versions of Shoelace are released as-needed and generally occur when a criti ## Next -- Fixed a bug that prevented `hoist` from working correctly in `` after updating Floating UI [#1024](https://github.com/shoelace-style/shoelace/issues/1024) - Fixed a bug in `` that caused containing dialogs, drawers, etc. to close when pressing Escape while focused [#1024](https://github.com/shoelace-style/shoelace/issues/1024) - Fixed a bug in `` that allowed lazy nodes to be incorrectly selected [#1023](https://github.com/shoelace-style/shoelace/pull/1023) +- Updated Floating UI to 1.0.7 to fix a bug that prevented `hoist` from working correctly in `` after a recent update [#1024](https://github.com/shoelace-style/shoelace/issues/1024) ## 2.0.0-beta.84 diff --git a/package-lock.json b/package-lock.json index 96402c1c..91efeb52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.0.0-beta.84", "license": "MIT", "dependencies": { - "@floating-ui/dom": "^1.0.6", + "@floating-ui/dom": "^1.0.7", "@lit-labs/react": "^1.1.0", "@shoelace-style/animations": "^1.1.0", "@shoelace-style/localize": "^3.0.3", @@ -722,9 +722,9 @@ "integrity": "sha512-Skfy0YS3NJ5nV9us0uuPN0HDk1Q4edljaOhRBJGDWs9EBa7ZVMYBHRFlhLvvmwEoaIM9BlH6QJFn9/uZg0bACg==" }, "node_modules/@floating-ui/dom": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.0.6.tgz", - "integrity": "sha512-kt/tg1oip9OAH1xjCTcx1OpcUpu9rjDw3GKJ/rEhUqhO7QyJWfrHU0DpLTNsH67+JyFL5Kv9X1utsXwKFVtyEQ==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.0.7.tgz", + "integrity": "sha512-6RsqvCYe0AYWtsGvuWqCm7mZytnXAZCjWtsWu1Kg8dI3INvj/DbKlDsZO+mKSaQdPT12uxIW9W2dAWJkPx4Y5g==", "dependencies": { "@floating-ui/core": "^1.0.2" } @@ -15721,9 +15721,9 @@ "integrity": "sha512-Skfy0YS3NJ5nV9us0uuPN0HDk1Q4edljaOhRBJGDWs9EBa7ZVMYBHRFlhLvvmwEoaIM9BlH6QJFn9/uZg0bACg==" }, "@floating-ui/dom": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.0.6.tgz", - "integrity": "sha512-kt/tg1oip9OAH1xjCTcx1OpcUpu9rjDw3GKJ/rEhUqhO7QyJWfrHU0DpLTNsH67+JyFL5Kv9X1utsXwKFVtyEQ==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.0.7.tgz", + "integrity": "sha512-6RsqvCYe0AYWtsGvuWqCm7mZytnXAZCjWtsWu1Kg8dI3INvj/DbKlDsZO+mKSaQdPT12uxIW9W2dAWJkPx4Y5g==", "requires": { "@floating-ui/core": "^1.0.2" } diff --git a/package.json b/package.json index dedd56c1..842986fc 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "node": ">=14.17.0" }, "dependencies": { - "@floating-ui/dom": "^1.0.6", + "@floating-ui/dom": "^1.0.7", "@lit-labs/react": "^1.1.0", "@shoelace-style/animations": "^1.1.0", "@shoelace-style/localize": "^3.0.3", diff --git a/src/components/dropdown/dropdown.ts b/src/components/dropdown/dropdown.ts index 13651784..90c906e8 100644 --- a/src/components/dropdown/dropdown.ts +++ b/src/components/dropdown/dropdown.ts @@ -410,7 +410,6 @@ export default class SlDropdown extends ShoelaceElement { shift auto-size="vertical" auto-size-padding="10" - .autoSizeBoundary=${this.hoist ? document.body : undefined} class=${classMap({ dropdown: true, 'dropdown--open': this.open