Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6cb9b4

Browse files
authored
feat: setup url autofill for dynamic parameters (#17739)
resolvescoder/preview#80Parameter autofill allows setting parameters from the url using theformat param.[param name]=["purple","green"]Example:http://localhost:8080/templates/coder/scratch/workspace?param.list=%5b%22purple%22%2c%22green%22%5d%0aThe goal is to maintain feature parity of for autofill with dynamicparameters.Note: user history autofill is no longer being used and is beingremoved.
1 parent87a1ebc commitd6cb9b4

File tree

4 files changed

+307
-159
lines changed

4 files changed

+307
-159
lines changed

‎site/src/components/Select/Select.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ export const SelectValue = SelectPrimitive.Value;
1515

1616
exportconstSelectTrigger=React.forwardRef<
1717
React.ElementRef<typeofSelectPrimitive.Trigger>,
18-
React.ComponentPropsWithoutRef<typeofSelectPrimitive.Trigger>
19-
>(({ className, children, ...props},ref)=>(
18+
React.ComponentPropsWithoutRef<typeofSelectPrimitive.Trigger>&{
19+
id?:string;
20+
}
21+
>(({ className, children, id, ...props},ref)=>(
2022
<SelectPrimitive.Trigger
2123
ref={ref}
24+
id={id}
2225
className={cn(
2326
`flex h-10 w-full font-medium items-center justify-between whitespace-nowrap rounded-md
2427
border border-border border-solid bg-transparent px-3 py-2 text-sm shadow-sm

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp