linkedin/Lu — pull request #283 by drewlee (2012-12-10 02:56:48+00:00)
Title: Dropdown Enter key behavior with preventDefault=false buttons

Since we've added preventDefault behavior to anchor buttons, I need to make an update to the Dropdown for when the user selects a link by using the keyboard. If button has preventDefault=false setting, we should make the browser follow the link, otherwise keep the existing behavior by just selecting the list item.

I noticed that preventDefault=false setting was initially not working because there's a duplicate click handler in Buttons.js that adds preventDefault with no settings check. Seems like this is a carry over from an old file and no longer needed, so I have removed it. Now preventDefault=false setting works correctly.

My only question now is whether Dropdown.js should be carried over to 0.4.x branch? But we can worry about that later down the line.