57
Views
4
Comments
Unable to reopen sidebar after closing it with the Esc key
Question
Application Type
Reactive

Hi all

When I close a sidebar in an app using the Esc key and then try and re-open that sidebar using the variable associated with the sidebar being visible, the sidebar refuses to open.

Does anyone know how to fix this?

Thanks!

2019-11-11 17-10-24
Manish Jawla
 
MVP

Hi @Nicholas Campbell,

Is that possible for you to share the sample oml.

Regards,

Manish Jawla

UserImage.jpg
Ellakkiya

Hello Nicholas Campbell,

I have done a workaround on your scenario.
Kindly refer the attached url  and oml

Hope this helps!

Regards,

Ellakkiya.S

Forum_test.oml
2022-11-02 07-18-33
Nicholas Campbell

Hi  Ellakkiya

Thanks so much for the sample. It works very well and is a clever solution - I take it from the JS that you intercepting the action of pressing the Esc key and closing the sidebar before it is closed using the Esc and thus avoiding the issue in essence?

I do wonder if there is perhaps a better solution for my specific case (where I have a lot of inputs I will be filling in on the sidebar) as there will be lots of keydown events and don't want that JS running each and every time as it will slow down the performance. Any thoughts?

UserImage.jpg
Ellakkiya

Hello Nicholas Campbell,

How are you closing the sidebar?

can you share the oml you have tried 

so that we can look on it 

Regards,

Ellakkiya.s


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.