Monthly Archives: March 2018

Bootstrap 3.3 – dropdown mobile menu not working

Yah!,

For a client, who is using Bootstrap v3.3.7, the dropdown menus on mobile weren’t working properly.

When clicking on BTC-Alpha on a mobile device the menu would close.

The solution was to edit bootstrap.js and on line +- 818

if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
  // if mobile we use a backdrop because click events don't delegate
  $(document.createElement('div'))
   .addClass('dropdown-backdrop')
   .insertAfter($(this))
   .on('click', clearMenus)
}

comment

$(document.createElement('div')) 
.addClass('dropdown-backdrop')
.insertAfter($(this))
.on('click', clearMenus)

so we have something like this

 

bigdata – Global Science Research (GSR)

About us

Global Science Research (GSR) was founded to optimize marketing strategies with the power of big data and psychological sciences. Our innovative methods produce insight on a revolutionary scale, empowering clients to understand consumers, markets, and competitors more deeply and accurately than ever before. GSR’s team is formed of experienced business analysts and leading academics, all of whom are experienced in helping companies utilize the power of psychology in the customer journey. Our innovative methods produce consumer insight on a revolutionary scale, empowering our clients to understand their consumers, markets, and competitors more deeply and accurately than ever before.

 https://www.linkedin.com/company/global-science-research/

companieshouse.gov.uk