mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Don't add type to div buttons
This commit is contained in:
parent
ff67c66f70
commit
7709139e63
|
|
@ -8,9 +8,9 @@ const onKeyDown: React.KeyboardEventHandler<HTMLButtonElement> = (event) => {
|
|||
if (!(event.target instanceof HTMLTextAreaElement)) event.preventDefault();
|
||||
};
|
||||
|
||||
const Button = styled.button.attrs(() => ({
|
||||
const Button = styled.button.attrs(({ as }) => ({
|
||||
onKeyDown,
|
||||
type: "button",
|
||||
type: !as || as === "button" ? "button" : undefined,
|
||||
}))<ButtonProps>`
|
||||
background-color: transparent;
|
||||
font-family: inherit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user