Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/ValuePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function ValuePicker({
placeholder = '',
errorText = '',
onInputChange,
onOpen,
furtherDetails,
shouldShowTooltips = true,
shouldShowModal = true,
Expand All @@ -32,6 +33,7 @@ function ValuePicker({

const showPickerModal = () => {
setIsPickerVisible(true);
onOpen?.();
};

const hidePickerModal = () => {
Expand Down
3 changes: 3 additions & 0 deletions src/components/ValuePicker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ type ValuePickerProps = ForwardedFSClassProps & {
/** Callback to call when the input changes */
onInputChange?: (value: string | undefined) => void;

/** Callback to call when the picker begins to open */
onOpen?: () => void;

/** Text to display under the main menu item */
furtherDetails?: string;

Expand Down
3 changes: 3 additions & 0 deletions src/pages/iou/request/step/IOURequestStepSubrate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ function IOURequestStepSubrate({
waitForUpcomingTransition: true,
});
}}
onOpen={() => {
textInputRef.current?.blur();
}}
/>
</View>
<InputWrapperWithRef
Expand Down
Loading