Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): cannot create album while name field is focused (#24449)

Yaros8b31936bb66a
diff --git a/mobile/lib/presentation/pages/drift_create_album.page.dart b/mobile/lib/presentation/pages/drift_create_album.page.dart
index 57e5cb09a9..f1cbdb13ff 100644
--- a/mobile/lib/presentation/pages/drift_create_album.page.dart
+++ b/mobile/lib/presentation/pages/drift_create_album.page.dart
@@ -27,8 +27,19 @@ class _DriftCreateAlbumPageState extends ConsumerState<DriftCreateAlbumPage> {
bool isAlbumTitleTextFieldFocus = false;
Set<BaseAsset> selectedAssets = {};
+ @override
+ void initState() {
+ super.initState();
+ albumTitleController.addListener(_onTitleChanged);
+ }
+
+ void _onTitleChanged() {
+ setState(() {});
+ }
+
@override
void dispose() {
+ albumTitleController.removeListener(_onTitleChanged);
albumTitleController.dispose();
albumDescriptionController.dispose();
albumTitleTextFieldFocusNode.dispose();