Skip to content

Commit

Permalink
Avoid double then on applying modifier (#1366)
Browse files Browse the repository at this point in the history
Fix regression after #1350

Before | After
---|---
![Simulator Screenshot - iPhone 15 Plus - 2024-05-22 at 13 03
14](https://github.com/JetBrains/compose-multiplatform-core/assets/1836384/533b0841-1518-4b34-8427-56bdf9fff3b8)
| ![Simulator Screenshot - iPhone 15 Plus - 2024-05-22 at 12 58
33](https://github.com/JetBrains/compose-multiplatform-core/assets/1836384/6a5d554f-d132-4c30-9488-8b027549b15b)
  • Loading branch information
MatkovIvan committed May 22, 2024
1 parent 7ad119c commit 6bf7678
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private var SemanticsPropertyReceiver.interopView by InteropViewSemanticsKey
*/
private fun Modifier.interopSemantics(enabled: Boolean, wrappingView: InteropWrappingView): Modifier =
if (enabled) {
this then semantics {
this.semantics {
interopView = wrappingView
}
} else {
Expand Down

0 comments on commit 6bf7678

Please sign in to comment.