Node reusage in IE 11 #499

Closed
apfelbox opened this Issue Jan 11, 2017 · 4 comments

Projects

None yet

3 participants

@apfelbox

Hi, I have a component using the following code:

return (
            <div className="file-browser-directory-listing">
                <div class="folder-view">
                    {parentDirectoryEntry}
                    {directory.subDirectories.map((subDir) => this.renderDirectoryEntry(subDir, false))}
                </div>
                <button type="button" className="button-add-subdirectory button button-link button-with-icon" onClick={() => this.initiateDirectoryAdd(directory)}>
                    <i className="icon icon-large icon-add" /> Unterverzeichnis hinzufügen
                </button>
            </div>
        );

I know have the problem in IE 11 that the node isn't properly reset when rendering, but instead the text node of the button with the text ("Unterverzeichnis hinzufügen") is just added and added again:

2017-01-11 at 14 08

Is there any known issue in IE 11?
I have the same issue nearly throught the complete app.

Installed version: preact@7.1.0

@apfelbox
apfelbox commented Jan 11, 2017 edited

Ok, so I just rechecked the code in a VM on my machine, but there was no issue. It has to be an issue of the IE in this specific environment. Will keep investigating.

Ok, so I can confirm the issue with preact@7.1.0 in multiple IE 11s, but the issue disappears in preact@6.4.0.

@mkxml
Collaborator
mkxml commented Jan 11, 2017

It may be related to #430.

In that case the duplication happens only one time.

Can you test with the code that is currently in the master branch? We are looking to release the fix soon.

@mkxml mkxml added the bug label Jan 11, 2017
@apfelbox

Thanks for the fast response!

I can confirm that the issue disappears when using master. 👍

@apfelbox apfelbox closed this Jan 11, 2017
@developit
Owner

Yesssss

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