Skip to content

Conversation

@malhindi
Copy link

No description provided.

_createClass(EditableLabel, [{
key: '_handleFocus',
value: function _handleFocus() {
value: function _handleFocus(event) {
Copy link
Owner

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
}

_handleFocus(text) {
_handleFocus(text, id, event) {
Copy link
Owner

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)

@chancesmith
Copy link

Any hope of merging here?

@bfischer
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants