Skip to content

Conversation

jules2689
Copy link
Contributor

I've had 2 instances now where loadend is used to change HTML based on the response from remote-input-element.

This doesn't work properly because the DOM is not updated with the response until just after remote-input-success.

To avoid this issue in the future, this adds a simple note explaining this caveat

cc @github/web-systems

Copy link
Contributor

@muan muan left a comment

Choose a reason for hiding this comment

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

Network events are always meant to only communicate network request status. Checking if remote-input has performed its function should always be the responsibility of its custom events.

I suggest instead of adding a note to against network events, we make it explicit that HTML would be set when remote-input-success is dispatched.

jules2689 and others added 2 commits October 30, 2019 17:13
Co-Authored-By: Mu-An 慕安 <muan@github.com>
@jules2689 jules2689 requested a review from muan October 30, 2019 21:13
@muan
Copy link
Contributor

muan commented Oct 30, 2019

Thanks for the contribution!

@muan muan merged commit 0f8c52a into github:master Oct 30, 2019
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