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

When input type = "password" the node can't be drag from list #853

Open
rayrayraykk opened this issue Apr 15, 2024 · 4 comments
Open

When input type = "password" the node can't be drag from list #853

rayrayraykk opened this issue Apr 15, 2024 · 4 comments

Comments

@rayrayraykk
Copy link


How can I fix this conflict?

@jerosoler
Copy link
Owner

I don't understand, can you elaborate more on your problem.

What does drag from list mean?

@rayrayraykk
Copy link
Author

I don't understand, can you elaborate more on your problem.

What does drag from list mean?

Thanks for your quick reply!

For example in you demo, I change input type text to password, I can't drag any of node unless I type something in other input box:

case 'github':
                var githubtemplate = `
          <div>
            <div class="title-box"><i class="fab fa-github "></i> Github Stars</div>
            <div class="box">
              <p>Enter repository url</p>
            <input type="password" df-name>
            </div>
          </div>
          `;
                editor.addNode('github', 0, 1, pos_x, pos_y, 'github', {"name": ''}, githubtemplate);
                break;

@jerosoler
Copy link
Owner

uhmmm it's very curious.

I think it's a browser limitation or some strange case.
If you click on another editable textarea type field, the behavior works again.

I see some similar problem:
react-dnd/react-dnd#3603
react-dnd/react-dnd#1596

With Firefox it doesn't seem to happen.

As a solution: By losing focus of an input type password you could detect the event and click on another hidden textarea.

Or make it a text field when you click and then hide. Or put on some kind of mask...

If I have time I will investigate further.

@rayrayraykk
Copy link
Author

Thanks again! If you have any updates about this thread, please let me know :)

@rayrayraykk rayrayraykk changed the title When input type = "password" the module can't be drag from list When input type = "password" the node can't be drag from list Apr 16, 2024
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

No branches or pull requests

2 participants