Skip to content

Commit 82355cd

Browse files
authored
Update melt (#186)
1 parent 745a080 commit 82355cd

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

.changeset/nine-doors-drop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"bits-ui": patch
3+
---
4+
5+
Update melt

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"types": "./dist/index.d.ts",
9292
"type": "module",
9393
"dependencies": {
94-
"@melt-ui/svelte": "0.61.1",
94+
"@melt-ui/svelte": "0.61.2",
9595
"nanoid": "^5.0.3"
9696
},
9797
"peerDependencies": {

pnpm-lock.yaml

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tests/select/Select.spec.ts

+8
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ describe("Select", () => {
8888
expect(input).not.toBeVisible();
8989
});
9090

91+
it.each([kbd.SPACE, kbd.ENTER])("selects item with the %s key", async (key) => {
92+
const { user, queryByTestId, getByTestId } = await open();
93+
await user.keyboard(kbd.ARROW_DOWN);
94+
await user.keyboard(key);
95+
await waitFor(() => expect(queryByTestId("content")).toBeNull());
96+
expect(getByTestId("value")).toHaveTextContent("A");
97+
});
98+
9199
it("syncs the name prop to the hidden input", async () => {
92100
const { input } = setup({ name: "test" });
93101
expect(input).toHaveAttribute("name", "test");

0 commit comments

Comments
 (0)