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: React <IonPicker> is not working #19620

Closed
marcoromag opened this issue Oct 10, 2019 · 2 comments
Closed

bug: React <IonPicker> is not working #19620

marcoromag opened this issue Oct 10, 2019 · 2 comments
Labels
package: react @ionic/react package

Comments

@marcoromag
Copy link

The IonPicker component in the React framework is not functional as it should be created out of the ion-picker-controller. Similar to IonAlert or the other controller-based components

The issue could be simply solved by creating the IonPicker with the createControllerComponent and removing it from the proxies:

import * as React from "react";
import {PickerOptions, pickerController} from '@ionic/core'

export const IonPicker = /*@__PURE__*/createControllerComponent<PickerOptions, HTMLIonPickerElement>('IonPicker', pickerController);
@elylucas
Copy link
Contributor

Thanks for the issue. This has been fixed in #19643 and will release in 4.11.1 soon.

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2019

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 Nov 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: react @ionic/react package
Projects
None yet
Development

No branches or pull requests

3 participants