Skip to content

Commit

Permalink
EPMRPP-79270 || remove placeholder if recipient added (#3366)
Browse files Browse the repository at this point in the history
* EPMRPP-79270 || remove placeholder if recipient added

* EPMRPP-79270 || fix: change for all placeholders
  • Loading branch information
Alexander committed Dec 27, 2022
1 parent eff644b commit 8f44797
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const MultipleAutocomplete = ({
...props
}) => {
let updatePosition;
const placeholderIfEmptyField = value.length === 0 && !disabled ? placeholder : '';

const handleChange = (...args) => {
updatePosition && updatePosition();
onChange(...args);
Expand Down Expand Up @@ -145,7 +147,7 @@ export const MultipleAutocomplete = ({
/>
<input
{...getInputProps({
placeholder: !disabled ? placeholder : '',
placeholder: placeholderIfEmptyField,
maxLength,
onFocus: () => {
openMenu();
Expand Down

0 comments on commit 8f44797

Please sign in to comment.