From cc2c6764ee06c8d836ef690583f7599838e13e0a Mon Sep 17 00:00:00 2001 From: Conor Mack Date: Wed, 4 Mar 2020 11:02:17 +0000 Subject: [PATCH] Completed MD Select --- .../materialdesign-components/src/Select/HelperText.svelte | 2 +- packages/materialdesign-components/src/Select/Select.svelte | 3 ++- packages/materialdesign-components/src/Select/index.js | 1 + packages/materialdesign-components/src/Test/props.js | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/materialdesign-components/src/Select/HelperText.svelte b/packages/materialdesign-components/src/Select/HelperText.svelte index 0e0016f3df..888f6e5267 100644 --- a/packages/materialdesign-components/src/Select/HelperText.svelte +++ b/packages/materialdesign-components/src/Select/HelperText.svelte @@ -28,4 +28,4 @@ $: helperClass = cb.build({ props }) -

{text}

+ diff --git a/packages/materialdesign-components/src/Select/Select.svelte b/packages/materialdesign-components/src/Select/Select.svelte index d146f4b001..28cf58697f 100644 --- a/packages/materialdesign-components/src/Select/Select.svelte +++ b/packages/materialdesign-components/src/Select/Select.svelte @@ -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 @@ - + diff --git a/packages/materialdesign-components/src/Select/index.js b/packages/materialdesign-components/src/Select/index.js index fbfce001c1..ee0c361c69 100644 --- a/packages/materialdesign-components/src/Select/index.js +++ b/packages/materialdesign-components/src/Select/index.js @@ -1,2 +1,3 @@ import "./_style.scss" +export { default as HelperText } from "./HelperText.svelte" export { default as Select } from "./Select.svelte"; \ No newline at end of file diff --git a/packages/materialdesign-components/src/Test/props.js b/packages/materialdesign-components/src/Test/props.js index 4e69766e12..942b031117 100644 --- a/packages/materialdesign-components/src/Test/props.js +++ b/packages/materialdesign-components/src/Test/props.js @@ -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: [ {