diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index f79854733786ae9b0c9827dda1cf232efa6f53e2..5e422d399a46a3d6d2321947fcb8fae4e49815c0 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -85,7 +85,6 @@ function buildText(params: Params) { Text(params.text) .fontSize(16) } - .focusable(false) // [End image_text_style] .justifyContent(FlexAlign.Center) .backgroundColor(Color.White) @@ -368,11 +367,14 @@ struct Index { let uiContext = this.getUIContext(); PromptActionClass.setContext(uiContext); PromptActionClass.setContentNode(imageTipsContentNode); + // [Start focusable] PromptActionClass.setOptions({ isModal: false, alignment: DialogAlignment.Bottom, - offset: { dx: 0, dy: -80 } + offset: { dx: 0, dy: -80 }, + focusable: false }); + // [End focusable] PromptActionClass.openDialog(); setTimeout(() => { PromptActionClass.closeDialog(imageTipsContentNode);