xamarin/Xamarin.Forms

TimePicker opens twice on edit time when it's placed inside ListView close to WebView

Offen

#4.305 geöffnet am 05.11.2018

 (15 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
a/webviewe/4 :clock4:help wantedinactivem/high impact :black_large_square:p/Androidt/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

TimePicker opens twice on edit time when it's placed inside ListView close to WebView

Steps to Reproduce

  1. Make xaml layout like:
<ListView ItemsSource="{Binding SomeSource}">
    <ListView.ItemTemplate>
        <DataTemplate>
            <ViewCell>
                <Grid RowSpacing="0" ColumnSpacing="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width = "30*"/>
                        <ColumnDefinition Width = "100"/>
                    </Grid.ColumnDefinitions>
                    <WebView Grid.Column="0" Margin="0" IsEnabled="False">
                        <WebView.Source>
                            <HtmlWebViewSource Html="&lt;html>&lt;body>&lt;p>Some HTML text&lt;/p>&lt;/body>&lt;/html>" />
                        </WebView.Source>
                    </WebView>
                    <TimePicker Grid.Column="1" />
                </Grid>
            </ViewCell>
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>
  1. Assign SomeSource to the some non-empty list.
  2. Run app and tap TimePicker to select time.
  3. Confirm time selection.
  4. Time selection will appear again by itself for some reason!

Expected Behavior

Time selection had not appear twice It have to appear once as if TimePicker used without ListView.

Actual Behavior

Time selection appear twice by itself for some reason.

Basic Information

  • Version with issue: 3.3
  • Last known good version: -
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:
    • Android: 8.1

Contributor Guide