@budibase/bbui 2.4.32 → 2.4.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "2.4.32",
4
+ "version": "2.4.33",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -38,8 +38,8 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
41
- "@budibase/shared-core": "^2.4.32",
42
- "@budibase/string-templates": "^2.4.32",
41
+ "@budibase/shared-core": "^2.4.33",
42
+ "@budibase/string-templates": "^2.4.33",
43
43
  "@spectrum-css/accordion": "3.0.24",
44
44
  "@spectrum-css/actionbutton": "1.0.1",
45
45
  "@spectrum-css/actiongroup": "1.0.1",
@@ -90,5 +90,5 @@
90
90
  "resolutions": {
91
91
  "loader-utils": "1.4.1"
92
92
  },
93
- "gitHead": "888e529e696dcd85af8a6be0cd40e0da851ce79d"
93
+ "gitHead": "08562c495947fc945846a9ba4e8e8b0034814781"
94
94
  }
@@ -42,9 +42,13 @@
42
42
  }
43
43
 
44
44
  const getFieldText = (value, options, placeholder) => {
45
- // Always use placeholder if no value
46
45
  if (value == null || value === "") {
47
- return placeholder !== false ? "Choose an option" : ""
46
+ // Explicit false means use no placeholder and allow an empty fields
47
+ if (placeholder === false) {
48
+ return ""
49
+ }
50
+ // Otherwise we use the placeholder if possible
51
+ return placeholder || "Choose an option"
48
52
  }
49
53
 
50
54
  return getFieldAttribute(getOptionLabel, value, options)