gradio/js/form
space-nuko 30f4556927
More dropdown fixes (#3705)
* Fix several dropdown bugs

- Stop reopening when arrow is pressed
- Fix not opening when value text is clicked
- Being unable to filter in single-select mode
- Change color of filter text
- Clear filtering text when focus is lost

* Fix more dropdown issues

- Filter being focused but options not opening
- Make actions triggered on keydown instead of keyup (better responsiveness)

* Select dropdown element if exact match

* Pop last multiselect element if backspaced into

* Fix even more dropdown issues

- Override default input component up/down arrow key action
- Active option preventing arrow key movement if exact match

* Don't truncate dropdown options in X direction

* Format

* Update changelog

* Fix

* Requested changes

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-27 12:56:39 -04:00
..
src More dropdown fixes (#3705) 2023-04-27 12:56:39 -04:00
package.json move files (#3605) 2023-03-27 16:12:58 -07:00
README.md move files (#3605) 2023-03-27 16:12:58 -07:00

@gradio/button

<script>
	import { Button } from "@gradio/button";
</script>

<button type="primary|secondary" href="string" on:click="{e.detail === href}">
	content
</button>