Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

malhindi
Copy link

No description provided.

@@ -493,14 +493,14 @@ var EditableLabel = function (_React$Component) {

_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
@@ -44,19 +46,22 @@ class App extends React.Component {
this._handleFocusOut = this._handleFocusOut.bind(this);
}

_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