Skip to content

Commit

Permalink
fix: always prevent default on composer submit (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 27, 2024
1 parent 21ccb71 commit 997164d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/primitives/composer/ComposerRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const ComposerPrimitiveRoot = forwardRef<
const send = useComposerSend();

const handleSubmit = (e: FormEvent) => {
if (!send) return;

e.preventDefault();

if (!send) return;
send();
};

Expand Down
4 changes: 1 addition & 3 deletions packages/tailwindcss-transformer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ function visitNode(
) {
return false;
}

const cn = generateHashedClassName(path.node.value);
if (cn === "aui-e3b0c442") {
console.log(cn, path.parentPath.value);
}
ctx.styleCache.set(cn, path.node.value);
path.node.value = cn;
return false;
Expand Down

0 comments on commit 997164d

Please sign in to comment.