Coder Social home page Coder Social logo

Comments (4)

jerosoler avatar jerosoler commented on May 25, 2024

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

What does drag from list mean?

from drawflow.

rayrayraykk avatar rayrayraykk commented on May 25, 2024

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;

from drawflow.

jerosoler avatar jerosoler commented on May 25, 2024

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.

from drawflow.

rayrayraykk avatar rayrayraykk commented on May 25, 2024

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

from drawflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.