danott / react-rails-form-helpers

Components for composing forms targeted at Rails
MIT License
81 stars 18 forks source link

fix(Utils) handle no displayName or name for components #2

Closed danielma closed 8 years ago

danielma commented 8 years ago

Internet explorer doesn't support Function.prototype.name, which causes src/utils.js to throw errors when trying to get a display name. To fix this, we take inspiration from react-redux and use an empty string as the third option in our or clause.

Fix #1

danott commented 8 years ago

@danielma Oops. I have already fixed this in master before I saw your Pull Request. I'm going to close this, since the functionality is already fixed 😄