Skip to content

Commit d6cb9b4

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

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
export const SelectTrigger = React.forwardRef<
1717
React.ElementRef<typeof SelectPrimitive.Trigger>,
18-
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
19-
>(({ className, children, ...props }, ref) => (
18+
React.ComponentPropsWithoutRef<typeof SelectPrimitive.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy