Software Archive
Read-only legacy content
17061 讨论

Framework7 side panel can't close when tap on outside

Arthur_T_
新分销商 I
1,566 次查看

Step to repeat:

- create a new project as Standard HTML5 application using App Designer and Framework7

- create 2 buttons, 1 left sidebar by drag the control on the page

- 1 button will open left sidebar, 1 button will prompt an alert

After I build the app and deploy to iPhone, it can open the left sidebar by click on the button. But can't default close it when tap outside the sidebar. Instead, it handle my tap on button script too so the alert prompt when I tap on the button. No different for

var myApp = new Framework7({
   panelsCloseByOutside: true
});

Anything wrong?

P.S. I'm using Intel XDK ver3240 run on iMac OSX El Capitan. iPhone 6s

0 项奖励
6 回复数
Elroy_A_Intel
员工
1,566 次查看

This seems to be an issue in regards to the functionality of the framework and the App Designer tool. I have escalated this issue to the App Designer engineering team.

0 项奖励
Brian_W_Intel
员工
1,566 次查看

If you add the following as a direct child of the body tag, you should achieve the functionality you want:

<div class="panel-overlay"></div>
0 项奖励
Arthur_T_
新分销商 I
1,566 次查看

Thanks Brian, it works. So it is XDK issue as missing that code.

0 项奖励
Chris_P_Intel
员工
1,566 次查看

We have a feature planned for the future so that users of F7 can elect the overlay or not. Presently, it is not included and users must add it manually. 

 

0 项奖励
Arthur_T_
新分销商 I
1,566 次查看

Understood, thanks Chris.

0 项奖励
Andrejs_V_
初学者
1,566 次查看

It is a little error in XDK

 

for F7 You should add class "close-panel" for closing panel element , example - button on slide panel

0 项奖励
回复