There was no JS error. And I found out that it’s not relating to the theme. It works properly after I cleared all cache files from W3 Total Cache plugin, before I switched to default theme TwentySeventeen. So, it works with TwentySeventeen theme and made false assumption about the conflicts with my custom theme. And now I switched back to my custom theme and working properly.
I’ll mark this as resolved, but keep checking and report back if this happens again.
Thanks for your answer.