add ref to ListBoxMenu

This commit is contained in:
weaseldotro 2020-10-05 11:15:14 +03:00 committed by GitHub
commit 6eeeebec6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,16 @@
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
/**
* Obtain a reference to the input HTML element
* @type {null | HTMLInputElement} [ref=null]
*/
export let ref = null;
</script>
<div
bind:this={ref}
role="listbox"
id="menu-{id}"
class:bx--list-box__menu="{true}"