Skip to content
Snippets Groups Projects
Commit dd67e8a8 authored by Ola Vanni Flaata's avatar Ola Vanni Flaata
Browse files

Liten fiks på velging av type

parent 9cafd7f6
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,8 @@ function Searchbar(){ ...@@ -36,6 +36,8 @@ function Searchbar(){
setType1(''); setType1('');
setType2(''); setType2('');
var name = document.getElementById('searchField') as HTMLInputElement; var name = document.getElementById('searchField') as HTMLInputElement;
var type1default = document.getElementById('type1default') as HTMLOptionElement;
type1default.selected = true;
name.value=''; name.value='';
} }
...@@ -65,7 +67,7 @@ function Searchbar(){ ...@@ -65,7 +67,7 @@ function Searchbar(){
setType2('') setType2('')
} }
}}> }}>
<option value={''} selected disabled hidden>Select a type</option> <option value={''} selected disabled hidden id={'type1default'}>Select a type</option>
<option value={''}>Any</option> <option value={''}>Any</option>
<option value={'normal'}>Normal</option> <option value={'normal'}>Normal</option>
<option value={'fire'}>Fire</option> <option value={'fire'}>Fire</option>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment