Skip to content

input nwdirectory makes a wrong path when openning the path selector dialog again #7786

Open
@chyj4747

Description

@chyj4747

NWJS Version : 0.57.0
Operating System : win10 x64

Expected behavior

The dialog should have correct path when opened second time

Actual behavior

The path in the dialog uses _ instead of : and \
E.g. E:\Test\Abc becomes E__Test_Abc

How to reproduce

<html>
    <head></head>
    <body>
        <input type="file" nwdirectory />
    </body>
</html>

Click the input, select a path (E:\Test for example), then click the input again, this time the path in the dialog will become E__Test

First time open dialog
bug1

Second time open dialog
bug4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions