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

The parameter "readonly" has no effect #14

Open
leocharrua opened this issue May 24, 2023 · 0 comments
Open

The parameter "readonly" has no effect #14

leocharrua opened this issue May 24, 2023 · 0 comments

Comments

@leocharrua
Copy link

This is my environment:

Ionic CLI : 7.1.1 (C:\Users\leoch\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.6.3
@angular-devkit/build-angular : 15.2.4
@angular-devkit/schematics : 15.2.4
@angular/cli : 15.2.4
@ionic/angular-toolkit : 8.0.0

Note: With previus version (Ionic and Angular), the component was working ok.

Now, if you set "readonly"="true" not has effect (chageRating event is fired).

The problem: For some reason, the Angular ControlValueAccessor function "setDisableState" (implemented in the component) is called (not for the component directly), and the readonly var is set to "false" (overwriting the initial value passed to the component).

Workaround: set disable=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant