We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38f1852 commit 60877dbCopy full SHA for 60877db
showcase/src/main/java/com/canopas/lib/showcase/component/ShowcaseContent.kt
@@ -51,14 +51,16 @@ fun ShowcasePopup(
51
onShowCaseCompleted: () -> Unit,
52
) {
53
state.currentTarget?.let {
54
- ShowcaseWindow {
55
- ShowcaseContent(
56
- target = it,
57
- dismissOnClickOutside = dismissOnClickOutside
58
- ) {
59
- state.currentTargetIndex++
60
- if (state.currentTarget == null) {
61
- onShowCaseCompleted()
+ if (it.coordinates.isAttached) {
+ ShowcaseWindow {
+ ShowcaseContent(
+ target = it,
+ dismissOnClickOutside = dismissOnClickOutside
+ ) {
+ state.currentTargetIndex++
+ if (state.currentTarget == null) {
62
+ onShowCaseCompleted()
63
+ }
64
}
65
66
0 commit comments