[2.0.0-alpha3] Select widget source must be optional

Created on 8 June 2024, 20 days ago
Updated 22 June 2024, 6 days 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.69.0 2024