Completed MD Select

This commit is contained in:
Conor Mack 2020-03-04 11:02:17 +00:00
parent 6785198c62
commit cc2c6764ee
4 changed files with 5 additions and 2 deletions

View File

@ -28,4 +28,4 @@
$: helperClass = cb.build({ props })
</script>
<p bind:this={helperText} {id} class={helperClass}>{text}</p>
<p bind:this={helperText} {id} class={helperClass} aria-hidden="true">{text}</p>

View File

@ -27,6 +27,7 @@
export let required = false
export let label = ""
export let helperText = ""
export let persistent = false
onMount(() => {
_bb.setContext("BBMD:list:props", { singleSelection: true })
@ -84,4 +85,4 @@
</div>
</div>
<HelperText id={_helperId} text={helperText} />
<HelperText id={_helperId} text={helperText} {persistent} />

View File

@ -1,2 +1,3 @@
import "./_style.scss"
export { default as HelperText } from "./HelperText.svelte"
export { default as Select } from "./Select.svelte";

View File

@ -150,6 +150,7 @@ export const props = {
_component: "@budibase/materialdesign-components/Select",
label: "Choose a Milkshake",
helperText: "Choose a flavour",
persistent: true,
onSelect: selectedItem => console.log("SELECT ITEM", selectedItem),
_children: [
{