CommunityToolkit / CommunityToolkit/Maui

[BUG] Popup with keyboard showing does no longer push content up

Open
#2,698 5 comments 4 reactions 1 assignee Claimed by @bijington View on GitHub
bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Did you read the "Reporting a bug" section on Contributing file?

- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### Current Behavior

In .NET 10 Preview 4, the IPopupService worked as it should, pushing the ContentView above the showing keyboard. After upgrading to .NET 10 Preview 5, I had to refactor to use PopupOptions where i do the following:

```cs
[RelayCommand]
async Task OpenLoginPopupAsync()
{
await popupService.ShowPopupAsync(
shell: Shell.Current,
options: new PopupOptions { Shape = null, },
shellParameters: new Dictionary()
{
["ReturnUrl"] = $"{Shell.Current.CurrentState.Location}?DocumentId={documentId}"
},
cancellationToken: CancellationToken);
}
```

And with this code, it looks similar to as Preview 4 (if I did not do Shape = null, it looks ugly and cuts off content for some reason.

But the issue is when I click on Entry element, the Keyboard is showing, but the content no longer is pushed above it, to view the content properly while the keyboard is up.

### Expected Behavior

I expect the same behavior as Preview 4, where ContentView will be pushed above the Keyboard.

### Steps To Reproduce

- Upgrade from Preview 4 to Preview 5.
- Create a LoginPopup

### Link to public reproduction project repository

---

### Environment

```markdown
- .NET MAUI CommunityToolkit: 12.0.0
- OS: Android
- .NET MAUI: 10 Preview 5
```

### Anything else?

Code:

LoginPopup.xaml:
```xaml



```

LoginPopup.xaml.cs:
```cs
public partial class LoginPopup
: Popup
{
public LoginPopup()
{
InitializeComponent();
}
}
```

Login.xaml:
```xaml






















```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.