Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: error when using custom events #25232

Closed
4 of 7 tasks
farisfaisalthena opened this issue May 4, 2022 · 2 comments
Closed
4 of 7 tasks

bug: error when using custom events #25232

farisfaisalthena opened this issue May 4, 2022 · 2 comments
Assignees
Labels

Comments

@farisfaisalthena
Copy link

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

When using custom events example InfiniteScrollCustomEvent, I will get an error on my IDE as shown below. Please note this happens when I use any custom events such as the refresher custom event etc

Screenshot 2022-04-27 at 9 16 28 AM

Expected Behavior

When using a custom event, the IDE should not show the error

Steps to Reproduce

  1. Create a fresh Ionic Angular project
  2. Enter the following code

In .html

<ion-infinite-scroll threshold="100px" (ionInfinite)="loadMore($event)">
          <ion-infinite-scroll-content loadingSpinner="dots" loadingText="Loading More Cosmetics...">
          </ion-infinite-scroll-content>
        </ion-infinite-scroll>

In .ts

loadMore(ev: InfiniteScrollCustomEvent) {
    this.currentPage.next(this.currentPage.value + 1);

    if (this.currentPage.value === this.maximumPages) {
      ev.target.disabled = true;
    }
  }

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.19.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.1.3
@angular-devkit/build-angular : 13.3.4
@angular-devkit/schematics : 13.3.4
@angular/cli : 13.3.4
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 3.5.0
@capacitor/android : not installed
@capacitor/core : 3.5.0
@capacitor/ios : 3.5.0

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v16.14.2 (/usr/local/bin/node)
npm : 8.5.0
OS : macOS Monterey

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label May 4, 2022
@liamdebeasi liamdebeasi self-assigned this May 4, 2022
@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of #24245.

@ionitron-bot
Copy link

ionitron-bot bot commented Jun 3, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants