From 1c2a77c0a08eadffbbcf6245004b74861b006091 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 14:03:52 +0200 Subject: [PATCH] :bug: fix(bal-select): disabling previous prefill in edge is not possible (#1407) * Create PR for #1406 * fix(bal-select): if autocomplete is set to off, then aria-autocomplete should be set to none * chore(bal-select): add changelog for bal-select fix --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Yannick Holzenkamp --- .changeset/hip-rice-double.md | 5 +++++ packages/core/src/components/bal-select/bal-select.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/hip-rice-double.md diff --git a/.changeset/hip-rice-double.md b/.changeset/hip-rice-double.md new file mode 100644 index 000000000..88cc8db6c --- /dev/null +++ b/.changeset/hip-rice-double.md @@ -0,0 +1,5 @@ +--- +'@baloise/ds-core': patch +--- + +**select**: Prevent autofill with previously entered data on Edge diff --git a/packages/core/src/components/bal-select/bal-select.tsx b/packages/core/src/components/bal-select/bal-select.tsx index 65c044e5c..e84b219e4 100644 --- a/packages/core/src/components/bal-select/bal-select.tsx +++ b/packages/core/src/components/bal-select/bal-select.tsx @@ -1058,6 +1058,7 @@ export class Select implements ComponentInterface, Loggable, BalAriaFormLinking aria-disabled={this.disabled ? 'true' : null} data-testid="bal-select-input" autocomplete={this.autocomplete} + aria-autocomplete={this.autocomplete === 'off' ? 'none' : null} placeholder={this.inputPlaceholder} readonly={!this.typeahead || this.disabled || this.readonly} contentEditable={this.typeahead}