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

Problem with Form Fields. #14

Open
sipi41 opened this issue Apr 8, 2016 · 1 comment
Open

Problem with Form Fields. #14

sipi41 opened this issue Apr 8, 2016 · 1 comment

Comments

@sipi41
Copy link

sipi41 commented Apr 8, 2016

Hi, I have a table inside a form, in each row I have a couple of text fields.

When I click the form field inside the table row, it just ignore that I want to write inside... in other words, I'm unable to use a combobox and/or an input box... is there a way to fix this?? please advise.

Thank you! awesome (if this can be fixed)

@sinanislekdemir
Copy link

sinanislekdemir commented Feb 28, 2017

I know, it is a bit late for your case but I also encountered the same problem and solved it by editing the "mousedown" function a little. The problem is preventDefault() also prevents the inputs to be active. So in my case, I had my input "text" fields so I just wrote the code to work with "text" fields just like below.
All I did was to check the ev.srcElement.type property; So the result is as below if it helps.

In my case, my form had "text"

function mousedown(ev)
    {
        ev = ev || window.event;
        if (this._start(ev.target || ev.srcElement, ev.clientY)) {
            if (ev.preventDefault) {
                if(ev.srcElement.type != "text"){
                    ev.preventDefault();
                }
            } else {
                ev.returnValue = false;
            }
            return false;
        }
        return true;
    }`

Sorry for the English btw.

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