File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const ExtensionSelector: FunctionComponent<Props> = ({ closable }) => {
1515 const [ source , setSource ] = useState < ExtensionSourceId > ( "amo" ) ;
1616 const [ extensionId , setExtensionId ] = useState ( "" ) ;
1717 const [ file , setFile ] = useState < File | undefined > ( undefined ) ;
18+ const inputId = useId ( ) ;
1819
1920 const selectSourceId = useId ( ) ;
2021 const fileInputRef = useRef < HTMLInputElement > ( null ) ;
@@ -64,12 +65,13 @@ const ExtensionSelector: FunctionComponent<Props> = ({ closable }) => {
6465 { source !== "file" ? (
6566 < >
6667 < div class = "row" >
67- < span class = "url" >
68+ < label class = "url" for = { inputId } >
6869 { source === "amo"
6970 ? "addons.mozilla.org/en-US/firefox/addon/"
7071 : "chromewebstore.google.com/detail/*/" }
71- </ span >
72+ </ label >
7273 < input
74+ id = { inputId }
7375 type = "text"
7476 value = { extensionId }
7577 placeholder = "extension id"
You can’t perform that action at this time.
0 commit comments