Updated inputs of type button to work in iOS.

Closes #1.