-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
StackLayout isUserInteractionEnabled="false" value is not working #3215
Comments
Hi @MadhuSudhanBhaskar, Sample code:
Regards, |
Hi @tsonevn So in that case, I should set a disable attribute on Scroll View also right?. Just for my confirmation, since I have not yet started on IOS it does not work there also, if I understood you properly. Regards, |
Hi @MadhuSudhanBhaskar, In iOS setting Hope this helps. |
Yes,
Thank you!!
Hope we fix this :) until then will have it on all components of the page
Regards,
Madhu
…On 01-Dec-2016 10:32 AM, "Nikolay Tsonev" ***@***.***> wrote:
Hi @MadhuSudhanBhaskar <https://github.com/MadhuSudhanBhaskar>,
Excuse me if I was not clear enough in my previous comment.
In iOS setting isUserInteractionEnabled to false to the Layout should
also affect the children. I was able to reproduce the problem only on
Android. If you would like to disable the scroll, you should also set
isUserInteractionEnabled="false" to the ScrollView.
Hope this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3215 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABE_T8EuUwNUITiq9gLjf0FHJrXbkJW3ks5rDpRDgaJpZM4LApr8>
.
|
Since this is the standard way iOS and Android behave, I will close this issue. |
@hamorphis I dint get you, do we have to externally set isUserInteractionEnabled to false on each component in that case? |
@MadhuSudhanBhaskar Yes. You can write a simple recursive function to do this like this:
JavaScript:
|
This is a nice method, however, it doesn't correctly work when setting interactivity back on.
|
Hi @dxshindeo, Hope this helps |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
StackLayout isUserInteractionEnabled="false" value is not working
https://docs.nativescript.org/api-reference/classes/_ui_core_view_.view.html#isuserinteractionenabled
Yes I did verify on stackover flow and other channels
I am trying to disable use interaction when I have a activity indicator. Below code is stack layout example.
<Button text="Sign in" (tap) = "test()">
<ActivityIndicator style="color:red" [busy] = "isLoading" >
Which platform(s) does your issue occur on?
Android [For now I tested this on Android alone]
Please provide the following version numbers that your issue occurs with:
tns --version
to fetch it) 2.4.0node_modules/tns-core-modules/package.json
file in your project) 2.4.0"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project) 2.4.1 (Android)package.json
file of yourproject)
Please tell us how to recreate the issue in as much detail as possible.
I have a button which enables the activity indicator, from my function I am trying to set isUserInteractionEnabled to false(Boolean) and trying to disable the interaction on the screen for certain time. But I still can click different buttons on the screen.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Some pieces of code.
<TextField hint="Password" secure="true" [(ngModel)]="user.password">
<Button text="Sign in" (tap) = "test()">
<ActivityIndicator style="color:red" [busy] = "isLoading" >
Component function
test() {
this.isLoading = !this.isLoading;
this.defaultTest = false;
}
The text was updated successfully, but these errors were encountered: