瀏覽代碼

Scroll dropdown to selected item in prop. table

Fixes an issue where the dropdown in a property table (ex.: Migration
Image Map property table found in OCI) would not correctly select an
item.
Sergiu Miclea 8 年之前
父節點
當前提交
d736a6516f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/molecules/PropertiesTable/index.jsx

+ 1 - 1
src/components/molecules/PropertiesTable/index.jsx

@@ -132,7 +132,7 @@ class PropertiesTable extends React.Component<Props> {
         data-test-id={`${baseId}-dropdown-${prop.name}`}
         width={320}
         noSelectionMessage="Choose a value"
-        selectedItem={selectedItem ? selectedItem.label : null}
+        selectedItem={selectedItem}
         items={items}
         onChange={item => this.props.onChange(prop, item.value)}
       />