Stack Exchange
Stack Overflow
  • Questions
  • Tags
  • Users
  • About
Stack Overflow
    1. Public
    2. Questions
    3. Tags
    4. Users
    5. About

Questions tagged [mat-autocomplete]

Autocomplete component for Angular Material. Use for this Material for angular 2+ (i.e., `@angular/material/autocomplete`).

https://material.angular.io/components/autocomplete

144 questions
0
votes
0 answers

matautocomplete panel is causing alignment issues with other fields

Issue is occurring in a SharePoint online UI page which is developed using angular integrated with SPFx. There is a matautocomplete panel field and its having values overlapped with other fields as shown in picture. Please suggest any solution as i…
angular alignment panel spfx mat-autocomplete
asked Jun 08 '23 at 14:22
Aswathi Hareesh
  • 1
  • 1
0
votes
0 answers

z-index : 9999 doesn't work in modal with autocomplete Angular v.15 and Bootstrap v.5

I'm working with Angular v.15 and Bootstrap v.5, but I have a problem with a modal and with a mat-autocomplete here is my HTML:
…
css angular angular-material modal-dialog mat-autocomplete
asked Apr 26 '23 at 11:06
snuz
  • 185
  • 12
0
votes
1 answer

Initialize the mat-autocomplete option with all the data

Autocomplete works fine when I started entering keys on the formcontrol but I wanted it to be initialized with all the data so that when I CLICKED the formcontrol (without entering keys yet) the options will show all the data. Right now all courses…
angular mat-autocomplete
asked Apr 13 '23 at 04:59
mynameisx
  • 221
  • 3
  • 16
0
votes
0 answers

Unable to Use mat-complete Control in Angular Material

I have an Angular project and I am trying to add a material autocomplete control to an input field in a form. Added the import statement to the app.module.ts and a file named material.module.ts like this: import { MatAutocompleteModule } from…
angular forms angular-material mat-autocomplete
asked Apr 03 '23 at 18:06
Njhasty
  • 39
  • 4
0
votes
0 answers

Disable input of mat-autocomplete

I need to programmatically disable the input of a mat-autocomplete. I dont mean to disable the autocomplete functionality, I mean to disable the input. Here my template:
angular disabled-input mat-autocomplete
asked Feb 13 '23 at 16:18
Jmainol
  • 357
  • 4
  • 18
0
votes
2 answers

How to disable mat-autocomplete on formBuilder?

I am trying to create a form in which once an option is selected in the first field, this selection gives the options of the second field, which is a mat-autocomplete, also when value from the mat-autocomplete is selected, it is filled with …
javascript angular mat-autocomplete
asked Jan 17 '23 at 14:17
AdamWist
  • 318
  • 2
  • 13
0
votes
0 answers

Autocomplete options not properly updating on user input - Angular 14

My problem is that I am updating options for a autocomplete input field based off the user's input. If the user has typed at least three characters in the textbox and the user hasn't typed in the last half second, I'll make an API call based off the…
angular angular-material mat-autocomplete mat-option
asked Jan 12 '23 at 20:22
noname
  • 95
  • 6
0
votes
2 answers

Angular async autocomplete filtering without http request?

I'm trying to create a users async autocomplete as following: this.users = this.usersService.getUsers()
angular rxjs mat-autocomplete
asked Dec 14 '22 at 07:42
Iñigo
  • 1,877
  • 7
  • 25
  • 55
0
votes
0 answers

How to set a default mat-option value on hover when a mat-autocomplete-panel is opened?

In Angular 14, I'm using the mat-autocomplete component from Material. When an option has been selected, if the user click on the autocomplete input again, the drop-down list of all available options shows up again but the selected option is not on…
angular angular-material mat-autocomplete mat-option
asked Dec 12 '22 at 11:12
Bravo2bad
  • 530
  • 1
  • 7
  • 25
0
votes
3 answers

mat-autocomplete options not able to find property

I am try to do autocomplete using this code. Now, the issue is I receiving option as [object objecct], I understood that's because I need to specify the field like option.name but when I do getting does not exist error. To check I options empty or…
javascript angular angular-material mat-autocomplete
asked Nov 22 '22 at 13:38
nyla L
  • 57
  • 6
0
votes
2 answers

Mat-autocomplete is not working in ngOnInit(), Map() is not working

HTML- I'm trying to use Mat-autocomplete but its not working on very first time when component gets loaded i.e in ngOnInit(), Its saying cannot read properties of null (reading 'map') …
javascript angular typescript angular-material mat-autocomplete
asked Sep 14 '22 at 07:31
Neeti Jain
  • 67
  • 4
0
votes
1 answer

Unable to patchValue matAutocomplete Angular

I need your help. I'm working with reactive forms and using matautocomplete to search for elements. I subscribe to changes in my input to search for my items. The fact is that I need to insert a certain value into my input using patchValue. I try to…
angular angular-reactive-forms mat-autocomplete
asked Jul 12 '22 at 14:45
Dmitry Chernyak
  • 295
  • 3
  • 12
0
votes
1 answer

mat-autocomplete selected mat-option pass multiple values from selectedItem

I have a mat-autocomplete that loads table data that is in JSON format and currently maps a single JSON value as the selected "value" when the user selects an item from the autocomplete. In addition to this value, I also need to pass some other…
angular mat-autocomplete
asked Jul 08 '22 at 14:39
js-newb
  • 421
  • 6
  • 16
0
votes
2 answers

ngModelChange value undefined when passed to function

I am using Angular autocomplete which I have connected to an API. Search results should not be returned until after typing has started. After typing a few letters in the box this error comes up in the…
angular typescript api ngmodel mat-autocomplete
asked Jun 28 '22 at 16:19
A.Mac
  • 203
  • 3
  • 19
0
votes
1 answer

Angular mat-autocomplete disable input FormControl not working

I am working on a custom components library, and we have a custom autocomplete component with chips. I want to be able to disable the input control when the disabled property in config object is true. I tried to do that in ngOnInit, but it didn't…
angular angular-material mat-autocomplete
asked Jun 01 '22 at 18:15
user08
  • 695
  • 3
  • 8
  • 25
Prev 1 2 3
…
9 10 Next