Skip to content

Commit

Permalink
fix(Navigation/RemoteCopy): fix for disabled 'Confirm' button [YTFRON…
Browse files Browse the repository at this point in the history
…T-4296]
  • Loading branch information
ma-efremoff committed Aug 19, 2024
1 parent 37f9b6a commit a6b7bde
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ export function PoolSuggestControl(props: Props) {
popupClassName={block('popup')}
text={value}
filter={getItems}
apply={(v) => allowEphemeral && onChange(typeof v === 'string' ? v : v.value)}
onItemClick={(v) => onChange(typeof v === 'string' ? v : v.value)}
onTextUpdate={allowEmpty ? (text) => !text && onChange('') : undefined}
onTextUpdate={(text) => {
if (allowEmpty && !text) {
onChange('');
} else if (allowEphemeral) {
onChange(text);
}
}}
placeholder={placeholder}
disabled={disabled}
/>
Expand Down

0 comments on commit a6b7bde

Please sign in to comment.