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 -"),
     ];

Comments

pdureau created an issue. See original summary.

  • pdureau committed a217c4ba on 2.0.x
    Issue #3453358 by pdureau: Select widget source must be optional
    
pdureau’s picture

Assigned: pdureau » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.