Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autosuggest dropdown is not clickable #578

Closed
2 tasks done
yer421 opened this issue Dec 14, 2022 · 6 comments
Closed
2 tasks done

Autosuggest dropdown is not clickable #578

yer421 opened this issue Dec 14, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@yer421
Copy link

yer421 commented Dec 14, 2022

Browser

No response

Package version

3.0.7

React version

18.2.0

Description

I have the Autosuggest dropdown within a container. When the dropdown is opened, it is not clickable. The options are only selected with the down arrow + enter.

Source code

return (
    <Container header={<Header variant="h2">Association</Header>}>
      <SpaceBetween direction="vertical" size="l">
        <NotificationBar error={errorMessage} clearNotifications={errorMessage === undefined} />
        <ColumnLayout columns={4}>
          <FormField label="Association ID" constraintText="10 character limit. No spaces">
            <Autosuggest
              enteredTextLabel={(value) => `Use: "${value}"`}
              options={associationCodeArray}
              onChange={({ detail }) => {
                setAssociationCode(detail.value);
              }}
              value={codeValue}
            ></Autosuggest>
          </FormField>
          <InputFormField
            label="Association Name"
            value={formData.associationName}
            editable={_editable}
            transformOptions={{ allCaps: true }}
            onChange={(_e, _error, transformValue) =>
              onInputChange('associationName', transformValue!)
            }
            validation={{ max: 50, required: true }}
          />
          <InputFormField
            label="Termination Date"
            constraintText="mm/dd/yyyy"
            value={formData.terminationDate.toString()}
            editable={_editable}
            onChange={({ detail }) => {
              onInputChange('terminationDate', detail.value);
            }}
          />
          <Box padding="xl">
            {isBusy ? (
              <Spinner />
            ) : (
              <BusyButton variant="primary" onClick={() => onAdd()}>
                Add
              </BusyButton>
            )}
          </Box>
        </ColumnLayout>

        <TemporaryEditableDataTable
          data={props.data}
          modelName={'Association'}
          onDelete={(d) => onDelete(d)}
          converters={converterMap}
        />
      </SpaceBetween>
    </Container>
  );

Reproduction

No response

Code of Conduct

@yer421 yer421 added the bug Something isn't working label Dec 14, 2022
@johannes-weber
Copy link
Member

Hi @yer421, could you share a reproducible example and/or a screenshot/video of the issue.
The code example code you've shared contains custom components and variables which are not referenced. Having a reproducible example makes investigating less like a guess-game.

@timogasda
Copy link
Member

Hello @yer421!
Please provide a reproducible example (ideally with CodeSandbox) so we can investigate this issue. Otherwise this issue will be resolved.

@yer421
Copy link
Author

yer421 commented Jan 3, 2023 via email

@yer421
Copy link
Author

yer421 commented Jan 3, 2023 via email

@connorlanigan
Copy link
Member

connorlanigan commented Jan 3, 2023

Hi @yer421, it sounds like you responded to this thread via email with an attachment, but GitHub did not include the attachment here. Could you try uploading it through GitHub's web interface?

Also, if you can reproduce the issue with code that you can share (e.g. by replacing the API call with placeholder data, removing unrelated components / proprietary code etc), it would be great if you could include the code (e.g. in CodeSandbox).

@just-boris
Copy link
Member

Closing due to inactivity. Feel free to reopen if you have more questions

@just-boris just-boris closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants