WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-12bed9-79.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 99485 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Custom element in autocomplete component with (click) doesnt work
Expected behavior When clicking the "Load more" button the loadMore() function is fired like with regular angular-material autocomplete component.
Actual behavior The loadMore() method is not fired
Resources (screenshots, code snippets etc.)
<div class="md-form">
<input autocomplete="off" mdbInputDirective type="text" class="completer-input form-control mdb-autocomplete mb-0"
[mdbValidation]="false" [(ngModel)]="searchText" #player [mdbAutoCompleter]="auto" id="player-autocomplete">
<label for="player-autocomplete">Pick a player</label>
<mdb-auto-completer #auto="mdbAutoCompleter" (select)="onPlayerSelect($event)">
<mdb-option *ngFor="let option of results" [value]="option">
<div class="d-flex flex-column">
{{option.name}}
</div>
</mdb-option>
<a href="#" (click)="loadMore()">Load more</a>
</mdb-auto-completer>
</div>
I've tried also making a directive to caputre the click like in example below
@Directive({
selector: '[appLoadMore]'
})
export class LoadMoreDirective {
@HostListener('click', ['$event'])
clickEvent(event) {
event.preventDefault();
event.stopPropagation();
console.log('Click from Host Element!');
}
}
I've tried also attaching event listener to element in this directive.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.4
- Device: pc
- Browser: chrome
- OS: windows 10
- Provided sample code: No
- Provided link: No
Damian Gemza staff commented 6 years ago
Dear @fifa-am
Does the Browser console throws you some errors? If yes, please paste me here the error code.
fifa-am commented 6 years ago
@Damian Gemza No browser errors.
fifa-am commented 6 years ago
Probably mousedown event is fired earlier and it closes the whole dropdown so the actual click is made on anything that is behind the autocomplete dropdown.
Arkadiusz Idzikowski staff commented 6 years ago
Thank you for all the details, we will take a closer look at this problem.