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

Text disappears from Editable TextBox #546

Open
mrj001 opened this issue Mar 30, 2024 · 0 comments · May be fixed by #541
Open

Text disappears from Editable TextBox #546

mrj001 opened this issue Mar 30, 2024 · 0 comments · May be fixed by #541
Labels
bug Something isn't working

Comments

@mrj001
Copy link

mrj001 commented Mar 30, 2024

Using the following XAML to define a main window:

<Window xmlns="https://github.com/avaloniaui"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:fa="using:FluentAvalonia.UI.Controls"
     mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="400"
     Width="400" Height="400"
     x:Class="ComboBox.MainWindow"
     Title="ComboBox">
  <StackPanel Orientation="Vertical">
    <TextBlock Text="An editable ComboBox:" Margin="5,5,0,0" />
    <fa:FAComboBox Name="ComboBox"
          Margin="10,5,0,0"
          IsEditable="true"
          >
      <fa:FAComboBoxItem Content="One" />
      <fa:FAComboBoxItem Content="Two" />
      <fa:FAComboBoxItem Content="Three" />
      <fa:FAComboBoxItem Content="Four" />
      <fa:FAComboBoxItem Content="Five" />
    </fa:FAComboBox>
    <TextBlock Text="A TextBox:" Margin="5,10,0,0" />
    <TextBox Name="TextBox" Margin="10,5,0,0" />
  </StackPanel>
</Window>

Click in the editable area of the FAComboBox. Type some text ( eg. "Pi"). Click in the TextBox (or tab to it). Observe that the text in the ComboBox disappears. Put focus back on the ComboBox. The text reappears. Shift the focus away, and the text disappears again. Go back and the text reappears.

Next, select an item from the dropdown list. This does not disappear when shifting focus away from the FAComboBox.

Next, type some text in the FAComboBox. Now, when focus is shifted away from it, the text no longer disappears.

Desktop/Platform (please complete the following information):

  • OS: Linux (Armbian 24.2.1 bookworm)
  • FluentAvalonia Version: 2.0.5 and 2.1.0-preview1
  • Avalonia Version: 11.0.10 and 11.1.0-beta1
@mrj001 mrj001 added the bug Something isn't working label Mar 30, 2024
amwx added a commit that referenced this issue May 1, 2024
@amwx amwx linked a pull request May 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant