Fixed a11y graph new vertex dropdown issue

This commit is contained in:
vaidankarswapnil
2022-01-28 09:02:04 +05:30
parent 9358fd5889
commit 48d9dd0991

View File

@@ -165,7 +165,6 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
</div> </div>
<div> <div>
<Dropdown <Dropdown
role="listbox"
placeholder="Select an option" placeholder="Select an option"
defaultSelectedKey={data.values[0].type} defaultSelectedKey={data.values[0].type}
style={{ width: 100 }} style={{ width: 100 }}
@@ -174,6 +173,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
text: type, text: type,
}))} }))}
onChange={(_, options: IDropdownOption) => onTypeChange(options.key.toString(), index)} onChange={(_, options: IDropdownOption) => onTypeChange(options.key.toString(), index)}
ariaLabel="Select an option"
/> />
</div> </div>
<div className="actionCol"> <div className="actionCol">