diff --git a/app/src/components/button-dropdown.tsx b/app/src/components/button-dropdown.tsx index 20cb0e480..80fae7391 100644 --- a/app/src/components/button-dropdown.tsx +++ b/app/src/components/button-dropdown.tsx @@ -69,7 +69,7 @@ export class ButtonDropdown extends React.Component { - if (e.key === 'Enter' || e.key === ' ') this.props.primaryClick(e as any); + if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); this.props.primaryClick(); } }} > {this.props.primaryItem} @@ -78,17 +78,17 @@ export class ButtonDropdown extends React.Component { - if (e.key === 'Enter' || e.key === ' ') this.toggleDropdown(); + if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); this.toggleDropdown(); } }} > -
+
{menu}
diff --git a/app/src/components/multiselect-list.tsx b/app/src/components/multiselect-list.tsx index 267725723..f86ad1ab9 100644 --- a/app/src/components/multiselect-list.tsx +++ b/app/src/components/multiselect-list.tsx @@ -228,9 +228,6 @@ export class MultiselectList extends React.Component { } _renderItems() { - return this.props.items.map((item) => ); + const noneSelected = !this.props.items.some(item => item.selected); + return this.props.items.map((item, idx) => ( + + )); } _renderOutline(allowCreate, collapsed) {