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

Label TapGestureRecognizer not firing #14480

Closed
Laim opened this issue Apr 8, 2023 · 1 comment
Closed

Label TapGestureRecognizer not firing #14480

Laim opened this issue Apr 8, 2023 · 1 comment
Labels
platform/android 🤖 platform/iOS 🍎 platform/windows 🪟 s/not-a-bug This isn't actually a bug, or is working as expected t/bug Something isn't working

Comments

@Laim
Copy link

Laim commented Apr 8, 2023

Description

When clicking on a label with a TapGestureRecognizer set, it does not fire.

Steps to Reproduce

    <ScrollView>
        <VerticalStackLayout>
            <Grid RowDefinitions="*,*,*" ColumnDefinitions="*,*,*" Padding="10" RowSpacing="10" ColumnSpacing="10">
                <StackLayout Grid.Row="0" Grid.ColumnSpan="3">
                    <Label Text="Download Website" FontSize="Subtitle" FontAttributes="Bold"/>
                    <Label Text="{Binding ObjectData.DownloadUrl}" Margin="0,0,0,10" Style="{StaticResource Links}" LineBreakMode="TailTruncation">
                        <Label.GestureRecognizers>
                            <TapGestureRecognizer Command="{Binding TapLinkCommand}"
                                                  CommandParameter="{Binding ObjectData.DownloadUrl}"/>
                        </Label.GestureRecognizers>
                    </Label>
                </StackLayout>
            </Grid>
        </VerticalStackLayout>
    </ScrollView>

Link to public reproduction project repository

n/a

Version with bug

7.0 (current)

Last version that worked well

6.0.424

Affected platforms

iOS, Android, Windows

Affected platform versions

iOS 16, Windows 10, Android 12 (v3.390)

Did you find any workaround?

No

Relevant log output

No response

@Laim Laim added the t/bug Something isn't working label Apr 8, 2023
@Laim
Copy link
Author

Laim commented Apr 8, 2023

Removing this, seems to fix it:

 <StackLayout Grid.Row="0" Grid.ColumnSpan="3">
 </StackLayout>

@Laim Laim closed this as completed Apr 8, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 9, 2023
@samhouts samhouts added the s/not-a-bug This isn't actually a bug, or is working as expected label May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/android 🤖 platform/iOS 🍎 platform/windows 🪟 s/not-a-bug This isn't actually a bug, or is working as expected t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants