Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Uncaught TypeError: apply is not a function #1028

Closed
CharlyIQar opened this issue Aug 21, 2020 · 2 comments · Fixed by #1030
Closed

Uncaught TypeError: apply is not a function #1028

CharlyIQar opened this issue Aug 21, 2020 · 2 comments · Fixed by #1030

Comments

@CharlyIQar
Copy link

Hello,

In Fancytree edit sample (https://wwwendt.de/tech/fancytree/demo/#sample-ext-edit.html), an error occurred when I edited node and I clicked on another node.

I made a video to see the issue :
Fancytree - Example Browser.zip

Have you a solution for this ? I have the same issue in my development project :(

Sorry for my bad english and thanks for your reply.

Charly

@mar10
Copy link
Owner

mar10 commented Aug 25, 2020

This seems to be a regression introduced with #1019, #921: f305e8a

@ewya

$(tree.$container).focus({ preventScroll: true });

is equivalent to

tree.$container.focus({ preventScroll: true });

but this does not match any jQuery.focus() signature?

@ewya
Copy link
Contributor

ewya commented Aug 26, 2020

@mar10
Oh, yes. It should look like this
tree.$container.get(0).focus({ preventScroll: true });
should be called on the dom element.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants