Skip to content

[Angular] Slider with two-way binding remains stuck after first usage #887

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

Closed
tsonevn opened this issue Jul 11, 2017 · 5 comments · Fixed by #986
Closed

[Angular] Slider with two-way binding remains stuck after first usage #887

tsonevn opened this issue Jul 11, 2017 · 5 comments · Fixed by #986

Comments

@tsonevn
Copy link
Contributor

tsonevn commented Jul 11, 2017

From @manoldonev on July 7, 2017 11:17

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.1.2
  • Cross-platform modules: 3.1.0
  • Runtime(s): 3.1.0

Please tell us how to recreate the issue in as much detail as possible.

Slider with two-way ngModel binding remains stuck after first usage. No errors are thrown but you cannot move the slider in either direction anymore. If you navigate away from the page and return back to it, the control is again operational on first usage, then remains stuck. This works correctly on Android.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

The issue is reproducible with any of the sliders in the Angular sdk examples that use two-way data binding here. You just need to update the tns-core-modules version in the app package.json to "~3.1.0".

Copied from original issue: NativeScript/NativeScript#4530

@manoldonev
Copy link
Contributor

Hey guys, we came across this problem when we updated our https://github.com/NativeScript/template-master-detail-ng template to latest NativeScript. Generally we'd prefer not to hack / workaround this particular issue in the template -- do you have an estimate for the fix?

@KLLaw
Copy link

KLLaw commented Aug 31, 2017

We are having the same issue.
Sliders were working fine under 3.0.0, but not anymore after updating to 3.1.0 and up.

Any estimate for the fix would be nice.

@rowdyrabouw
Copy link

It's a very nasty issue.
We use quit a lot of Sliders and can't upgrade beyond 3.0.0 and Angular 4.1.

This is the last working combination:
"dependencies": {
"@angular/animations": "~4.1.0",
"@angular/common": "~4.1.0",
"@angular/compiler": "~4.1.0",
"@angular/core": "~4.1.0",
"@angular/forms": "~4.1.0",
"@angular/http": "~4.1.0",
"@angular/platform-browser": "~4.1.0",
"@angular/router": "~4.1.0",
"nativescript-angular": "~3.0.0"
}

Can you please fix it?

@sis0k0 sis0k0 self-assigned this Sep 7, 2017
@sis0k0 sis0k0 added this to the 4.3 milestone Sep 7, 2017
@sis0k0 sis0k0 added the forms label Sep 7, 2017
sis0k0 added a commit that referenced this issue Sep 8, 2017
accessors

`touch` event is not suitable for triggering ngOnTouch classes for iOS
and is causing several issues, such as overriding the change event.

related #804
related #866
fixes #887
@ghost ghost added the in progress label Sep 8, 2017
sis0k0 added a commit that referenced this issue Sep 13, 2017
…accessors (#986)

`touch` event is not suitable for triggering ngOnTouch classes for iOS
and is causing several issues, such as overriding the change event.

related #804
related #866
fixes #887
@ghost ghost removed the in progress label Sep 13, 2017
@DimitarTodorov
Copy link
Contributor

@sis0k0
This issue is still reproducing in an app created from our template-master-detail-ng referencing official and nativescript-angular@next versions. Can we reopen the issue?

@DimitarTodorov
Copy link
Contributor

Issue is fixed with angular: 4.4+ and nativescript-angular: 4.4+.

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