[2.0.0-alpha3] Select widget source must be optional

Created on 8 June 2024, 6 months ago
Updated 22 June 2024, 5 months ago

Problem/Motivation

Select widget source must be optional.

Proposed resolution

/src/Plugin/UiPatterns/Source/SelectWidget.php
@@ -37,6 +37,7 @@ class SelectWidget extends SourcePluginPropValue {
       '#type' => 'select',
       '#default_value' => $this->getSetting('value'),
       "#options" => $options,
+      "#empty_option" => $this->t("- Select -"),
     ];
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024