Topic: [BUG FIX] MDB Select - Highlight first option not working

Papadimitroulas free asked 7 months ago


When highlightFirst is false, it should look like this:Simple select

Instead, it looks like this:

enter image description here

to fix it, open mdb-angular-ui-kit-select.js and find the open() function. You should see an if statement:

if (overlayRef && !overlayRef.hasAttached()) { overlayRef.attach(this._portal); this._listenToOutSideClick(overlayRef, this.input).subscribe(() => this.close()); this._highlightFirstOption(); }

change

this._highlightFirstOption();

with:

if(this._highlightFirst) { this._highlightFirstOption(); }


Arkadiusz Idzikowski staff commented 7 months ago

@Papadimitroulas Thank you for reporting this problem, we will take a closer look at that and add a fix as soon as possible.


Arkadiusz Idzikowski staff answered 7 months ago


@Papadimitroulas This problem was fixed in v2.3.0, please upgrade your MDB5 Angular version.


Papadimitroulas free commented 7 months ago

Awesome but I don't have an active subscription, I fixed it locally. Thank you anyway.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 2.2.0
  • Device: Windows
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No