diff --git a/packages/amis/__tests__/renderers/__snapshots__/Picker.test.tsx.snap b/packages/amis/__tests__/renderers/__snapshots__/Picker.test.tsx.snap index 94ca95c5442..49cf54bec3e 100644 --- a/packages/amis/__tests__/renderers/__snapshots__/Picker.test.tsx.snap +++ b/packages/amis/__tests__/renderers/__snapshots__/Picker.test.tsx.snap @@ -28,10 +28,10 @@ exports[`1. Renderer:Picker base 1`] = ` class="cxd-PickerControl cxd-Form-control" >
) { + this.input.current && this.input.current.focus(); + e.stopPropagation(); this.setState({ isFocused: true }); @@ -471,7 +473,6 @@ export default class PickerControl extends React.PureComponent< @autobind handleClick() { - this.input.current && this.input.current.focus(); this.open(); } @@ -816,7 +817,7 @@ export default class PickerControl extends React.PureComponent< value={''} ref={this.input} onKeyDown={this.handleKeyDown} - onFocus={this.handleFocus} + onClick={this.handleFocus} onBlur={this.handleBlur} readOnly={mobileUI} />