Skip to content

Commit

Permalink
fix: Remove development mode warnings (#398)
Browse files Browse the repository at this point in the history
* fix withRichContent prop error

* autocomplete placeholder warning
  • Loading branch information
tiagoevanp authored Feb 18, 2021
1 parent 3c35089 commit 80e77dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/fuselage/src/components/AutoComplete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ export function AutoComplete({
onFocus={show}
onKeyDown={handleKeyDown}
placeholder={
(optionsAreVisible !== AnimatedVisibility.HIDDEN || !value) &&
placeholder
optionsAreVisible !== AnimatedVisibility.HIDDEN || !value
? placeholder
: undefined
}
order={1}
rcx-input-box--undecorated
Expand Down
3 changes: 2 additions & 1 deletion packages/fuselage/src/components/Box/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ export const useBoxOnlyProps = (props) => {
props.className,
'rcx-box--with-block-elements'
);
delete props.withRichContent;
}

delete props.withRichContent;

props.className = prependClassName(props.className, 'rcx-box rcx-box--full');

return props;
Expand Down

0 comments on commit 80e77dc

Please sign in to comment.