Phase 4. 마에스트로 목록 화면 구현
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"use client";
|
||||
|
||||
import type { ComponentProps } from "react";
|
||||
|
||||
type AutoSubmitSelectProps = ComponentProps<"select">;
|
||||
|
||||
export function AutoSubmitSelect({
|
||||
onChange,
|
||||
...props
|
||||
}: AutoSubmitSelectProps) {
|
||||
return (
|
||||
<select
|
||||
{...props}
|
||||
onChange={(event) => {
|
||||
onChange?.(event);
|
||||
event.currentTarget.form?.requestSubmit();
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user