Rothenbaum pro asked 4 years ago


I want to reset my slider back to 0 value when I click my form reset button.

Currently the slider input does nothing on reset.

How can I set my slider back to 0 value when clicking form reset?

<mdb-multi-range-input (rangeValueChange)="onChangeYearsWorkedKleinfelderRange($event)" id="yearsWorkedKleinfelderRange" min="0" max="60"></mdb-multi-range-input>

onClickReset() {
    this.advancedSearchForm.reset();
    this.advancedSearchForm.controls.otherStatus.setValue('Active');
    this.searchService.reset();
};

The value entered before reset

After form reset  button clicked


Konrad Stępień staff commented 4 years ago

Hi @Rothenbaum,

Please visit this page and tell me if you still have a problem.

https://mdbootstrap.com/support/angular/how-to-reset-the-mdb-angular-range-slider/



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 9.3.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No