Added state open for every link to have its own open or close state Added compoentWillReceiveProps to handle the case of multiple dropdowns It makes sure that only one dropdown is open at a time Global document click now only changes the state from open to close thereby bypassing the parent base callback
Added state open for every link to have its own open or close state
Added compoentWillReceiveProps to handle the case of multiple dropdowns
It makes sure that only one dropdown is open at a time
Global document click now only changes the state from open to close
thereby bypassing the parent base callback

haridusenadeera/react-navbar,haridusenadeera/react-navbar