From 958ba792560dd7ef68f26206e9bef5663cf4b7ae Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Tue, 23 Feb 2021 09:16:56 +1300 Subject: [PATCH] fix: remove button nesting (#3100) --- .../app/ui/components/base/dropdown/dropdown-button.js | 6 +++++- .../app/ui/components/dropdowns/account-dropdown.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.js b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.js index 3e0ead8f6..e38ce385f 100644 --- a/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.js +++ b/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-button.js @@ -3,7 +3,10 @@ import PropTypes from 'prop-types'; class DropdownButton extends PureComponent { render() { - const { children, ...props } = this.props; + const { children, noWrap, ...props } = this.props; + if (noWrap) { + return <>{children}; + } return (