I'm using Bootstrap4.
The button appears in the footer component.
There is no problem when viewing on a PC, but when viewing on a smartphone, when I press the button, the button stays pressed.
How can I change the display to normal after the button is pressed, the same as on a PC?
app.component.html
<app-header></app-header>
<router-outlet></router-outlet>
<app-footer></app-footer>
footer.component.html
<button (click)="prevPage()" type="button" #prevBtn class="btn btn-block px-sm-3 px-md-5 btn-warning">
prev <fa-icon [icon]="faAngleRight"></fa-icon>
</button>
footer.component.ts
@ViewChild('prevBtn', { static: false }) prevBtn: ElementRef;
prevPage() {
this.router.navigate([this.prevHref]);
this.prevBtn.nativeElement.blur();
}
use
- Angular 8.2.14
- Bootstrap 4.3.1
For Android + Chrome, hover? Active? will remain on the button.
