This should be an issue of androidx.compose.ui. Same issue was reported, see here. From the release notes of androidx.compose.ui, this issue was fixed in version 1.7.0-alpha03, see Version 1.7.0-alpha03