Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

autocomplete is not working inside dialog. #3979

@chungwong

Description

@chungwong

For some reason, if scope is preserved in a dialog, autocomplete is not functioning well at all.

To produce the problem:

  1. open dialog
  2. select anything in autocomplete
  3. close the dialog
  4. repeat above steps

And you will see an extra autocomplete selection appeared at the top left of the page.

If

        scope: $scope,
        preserveScope: true,

are commented out, this will not happen.

Below is a codepen which is forked from the demo dialog and I copied the demo autocomplete into it.

See the Pen Basic Usage by CHUNG H WONG (@chungwong) on CodePen.

<script async src="//assets.codepen.io/assets/embed/ei.js"></script>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions