Skip to content

DBInput: Before Icon disappears when autoComplete is used #4133

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

Closed
1 of 7 tasks
JulianBu opened this issue Apr 30, 2025 · 2 comments · Fixed by #4158
Closed
1 of 7 tasks

DBInput: Before Icon disappears when autoComplete is used #4133

JulianBu opened this issue Apr 30, 2025 · 2 comments · Fixed by #4158
Assignees
Labels

Comments

@JulianBu
Copy link

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

When DBInput is used with the Browser (Chrome, Edge) autoComplete the before Icon disappears.

Before:
Image

After:
Image

Expected Behaviour

Before Icon should be shown when Browser (Chrome, Edge) autoComplete is used.

Screenshots

No response

Browser version

Chrome

Add any other context about the problem here.

No response

@nmerget
Copy link
Collaborator

nmerget commented Apr 30, 2025

I couldn't reproduce the issue.

Do you use type="search"? The cross icon will only be visible on hover, this would be the browser default, see MDN.

Or do you want to use a custom icon instead of the maginifier?

Maybe you can add the React snippet for reproduction thank you :)

@JulianBu
Copy link
Author

JulianBu commented Apr 30, 2025

I see the second screenshot isn't quite good.
Die magnifier Icon disappears after I clicked on a autoComplete option.

Image

After that, the Icon on the Lefthand side isn't there anymore.

The Code is pretty straight forward.

<DBSection className="justify-items-center" spacing="none">
          <DBInput
            className="w-70 m-6"
            type="search"
            variant="floating"
            label="Zugnummer eingeben"
            maxlength={8}
            pattern="^\d{1,8}$"
            name="zugnummer"
            required
            invalidMessage="Bitte Zugnummer eingeben"
            formNoValidate
            autocomplete="off"
          />
          <DBInput
            className="w-70 m-6"
            type="date"
            variant="floating"
            label="Datum eingeben"
            name="datepicker"
            required
            invalidMessage="Bitte auswählen"
            formNoValidate
            autocomplete="off"
          />
</DBSection>

@mfranzke mfranzke moved this from 📋 Backlog to 🕋 In progress in UX Engineering Team Backlog May 6, 2025
@mfranzke mfranzke assigned mfranzke and nmerget and unassigned mfranzke May 6, 2025
@github-project-automation github-project-automation bot moved this from 🕋 In progress to ✅ Done in UX Engineering Team Backlog May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants