google-chrome executes scroll up when changing value of select

0

I have a reactive form in angle 5.

This form has <select formControlName="select" multiple> with several optgroup and option . When I click on some optgroup of this select, I change the value of FormControl called "select" so that the options are selected. So far so good .. but apart from selecting the options the browser scrolls and ends up showing the options that are selected.

I am changing the value of the FormControl as follows: this.form.get('select').setValue(items)

This problem I noticed, only happens in google chrome.

    
asked by anonymous 18.01.2018 / 17:56

0 answers