polaris icon indicating copy to clipboard operation
polaris copied to clipboard

[Autocomplete][v1] Requesting access to options popover visible state

Open maxariss opened this issue 7 years ago • 6 comments

Feature request summary

I'm hoping we can add something to the <Autocomplete /> component's API which allows us to know whether or not the options <Popover /> is visible.

Rationale

We have an <Autocomplete /> used in a rather large form. We would like all fields in the form to submit the form if the enter key is pressed while they are focued. Except for when the options <Popover /> is active and being used.

Alteratively, I believe stopping event propogation from <ComboBox />'s handleEnter() method would also fix our problem – but perhaps that is too opinionated.

maxariss avatar Jan 28 '19 20:01 maxariss

@maxariss Can you share the details about this form (either here or in Slack)? It sounds unusual. cc @dpersing

ry5n avatar Jan 28 '19 22:01 ry5n

@ry5n @maxariss @dpersing any follow-up on this? Wondering if a conversation happened somewhere else and this can be closed or should be moved to the backlog so we can plan work for it?

yourpalsonja avatar Apr 17 '19 20:04 yourpalsonja

I don’t recall having discussed this offline, and I don’t have any additional information.

ry5n avatar Apr 17 '19 20:04 ry5n

We would like all fields in the form to submit the form if the enter key is pressed while they are focued. Except for when the options is active and being used.

I wonder if this could be addressed by changing the implicitSubmit prop of the form component to be more flexible about specific fields, versus making a change to the autocomplete component?

dpersing avatar Apr 18 '19 15:04 dpersing

Autocomplete is currently being reworked as a part of the AutoComplete component project. Once we address this problem in the reworked component, we’ll close this issue.

dleroux avatar Jul 18 '19 11:07 dleroux

This issue has been inactive for 180 days and labeled with Icebox. It will be closed in 7 days if there is no further activity.

ghost avatar Jan 14 '20 11:01 ghost