-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add input id and event props #6
base: master
Are you sure you want to change the base?
Conversation
@@ -493,14 +493,14 @@ var EditableLabel = function (_React$Component) { | |||
|
|||
_createClass(EditableLabel, [{ | |||
key: '_handleFocus', | |||
value: function _handleFocus() { | |||
value: function _handleFocus(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes shouldn't happen to the bundle file. This is just the distribution bundle created by webpack. If you want to make changes, you need to change the src/main.jsx and rebundle.
README.md
Outdated
@@ -44,19 +46,22 @@ class App extends React.Component { | |||
this._handleFocusOut = this._handleFocusOut.bind(this); | |||
} | |||
|
|||
_handleFocus(text) { | |||
_handleFocus(text, id, event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that we should go with this approach of passing in the event and input ID through the focus handler. The event should already contain the input element, which will have the id, class, etc., on it already. If anything, I would suggest something like this would be sufficient:
handleFocus(text, e)
Any hope of merging here? |
I don't think the textarea option should be here. I think the idea in general of it is fine, but I'd prefer that to be a separate component instead of integrated into this one. This is meant to be a simple label/input. Also could you undo the changes to the package-lock.json? |
No description provided.