I would be grateful if anybody helps me to resolve this problem.
I tried to access the native menu close option and I am succeeded this by accessing the close option statically (accessed by menu position) using Event injector method. Is there anyother way to access the close option directly/dynamically without accessing by menu position?