Looking for a solution:
<ion-grid *ngIf="headerService.showSearch()">
<ion-row id="searchbar" class="main-searchbar ion-align-items-center">
<ion-col size="11">
<ion-searchbar class="custom" placeholder="Buscar entre mis productos" type="text"
showClearButton="never" id="searchInput" #searchBar (ionInput)="headerService.onSearchInput($event)"
(keyup.enter)="headerService.onEnterPress($event)"></ion-searchbar>
</ion-col>
<ion-col size="1" id="trigger-filter">
<svg xmlns="" width="20" height="20" fill="#808080"
class="bi bi-funnel-fill ion-float-right" viewBox="0 0 16 16">
<path
d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5v-2z" />
</svg>
</ion-col>
<app-search-popover></app-search-popover>
</ion-row>
</ion-grid>
The current setup triggers the popover below the ion-col element, but I want it to open in alignment with the entire ion-grid container. Is there a way to achieve this?
Here's the code for the popover:
<ion-popover trigger="trigger-filter" triggerAction="click" interface="popover" side="bottom" size="auto"
[dismissOnSelect]="false" class="custom-popover" show-backdrop="false">
<ng-template class="content-popover">
<ion-grid>
// Popover content here...
</ion-grid>
</ng-template>
</ion-popover>