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: @ionic/core PickerOptions interface missing "showBackdrop" property #18893

Closed
dustindowns opened this issue Jul 25, 2019 · 1 comment · Fixed by #20301
Closed

bug: @ionic/core PickerOptions interface missing "showBackdrop" property #18893

dustindowns opened this issue Jul 25, 2019 · 1 comment · Fixed by #20301
Labels

Comments

@dustindowns
Copy link

Bug Report

Ionic version:
5.2.3

Current behavior:
The PickerOptions interface is missing the showBackdrop property. When adding that property to an object that implements the PickerOptions interface, the following TS error occurs: "Object literal may only specify known properties, and 'showBackdrop' does not exist in type 'PickerOptions'."

Expected behavior:
Adding the showBackdrop property to the object that implements the PickerOptions interface should not cause a TS error, since it is a valid option.

Steps to reproduce:

  1. Create an object that implements the PickerOptions interface.
  2. Add the "columns" property, with an empty array value. (To satisfy the required property of the interface).
  3. Add the showBackdrop property to the object, with a boolean value.

Related code:
StackBlitz

Other information:
My current workaround is implementing the following interface:

interface IonicPickerOptions extends PickerOptions {
  showBackdrop?: boolean;
}

Ionic info:

Ionic:

   Ionic CLI                     : 5.2.3 (/Users/dustin.downs/.nvm/versions/node/v10.16.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.7.0
   @angular-devkit/build-angular : 0.801.2
   @angular-devkit/schematics    : 8.1.2
   @angular/cli                  : 8.1.2
   @ionic/angular-toolkit        : 1.5.1

Capacitor:

   Capacitor CLI   : 1.1.1
   @capacitor/core : 1.1.1

Utility:

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

System:

   NodeJS : v10.16.0 (/Users/dustin.downs/.nvm/versions/node/v10.16.0/bin/node)
   npm    : 6.10.2
   OS     : macOS Mojave
@ionitron-bot
Copy link

ionitron-bot bot commented Feb 26, 2020

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 Feb 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant