Skip to content

Commit

Permalink
fix clear search area on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbashan committed Dec 18, 2024
1 parent 573a403 commit 43eac9e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,13 @@ export class AreaSearchSelectorResultsComponent implements OnInit {
event.stopPropagation();
event.preventDefault();
}

ngOnDestroy() {
if(this.mobileInputEl){
console.log("should clear")
timer(0).subscribe(() => {
this.state.area_ = null;
});
}
}
}

0 comments on commit 43eac9e

Please sign in to comment.