Skip to content

Conversation

fifoosid
Copy link
Contributor

No description provided.

Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer need to call bind() for event handlers this way, please rework it by just passing the functions in the template (as we now give lit-html the event context)

@fifoosid fifoosid requested a review from vladitasev June 20, 2019 07:27
const nativeTextarea = this.getInputDomRef();

/* skip calling change event when an textarea with a placeholder is focused on IE
- value of the host and the internal textarea should be differnt in case of actual textarea
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the comments:

  • typo in "differnt" -> different

  • in case of actual "textarea"
    (I guess this should be: in case of actual input/typing)

  • "textarea" is called when a key is pressed
    (I guess this should be: the "input" event is called when a key is pressed)

}

this.value = nativeTextarea.value;
this.fireEvent("input", {});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add "value-change" to make "origami" work?

@fifoosid fifoosid merged commit 7c5647e into master Oct 23, 2019
@fifoosid fifoosid deleted the textarea-input-event branch October 23, 2019 13:24
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