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

Fix itext onInput with selected text #2502

Merged
merged 6 commits into from
Oct 5, 2015
Merged

Fix itext onInput with selected text #2502

merged 6 commits into from
Oct 5, 2015

Conversation

asturur
Copy link
Member

@asturur asturur commented Sep 27, 2015

Remove cancelOnInput logic, a normal e.preventDefault + stopPropagation is enough.
Take in account already selected text when deciding how much text we are inserting during input event

closes #2451

Remove cancelOnInput logic, a normal e.preventDefault + stopPropagation is enough.
Take in account already selected text when deciding how much text we are inserting during input event
@asturur
Copy link
Member Author

asturur commented Sep 27, 2015

unified removeStyleObject for itext and textbox

@asturur
Copy link
Member Author

asturur commented Sep 28, 2015

@kangax those are failing for node4. Should i do something?

@kangax
Copy link
Member

kangax commented Sep 28, 2015

@asturur yeah, Fabric is failing on Node 4.x for some reason.

@LinusU any idea what this is? (https://travis-ci.org/kangax/fabric.js/jobs/82422214#L584) I thought this was supposed to be fixed in 1.2.9 but apparently something is still wrong? Would appreciate if you could give some pointers!

@asturur
Copy link
Member Author

asturur commented Sep 29, 2015

should we not update also jsdom? i read sonewhere that to use node4 you beed jsdom higher than 6.3

@asturur
Copy link
Member Author

asturur commented Sep 29, 2015

anyway this PR would be ready like it is if you do not see anything strange

@LinusU
Copy link

LinusU commented Sep 29, 2015

@kangax Hmm, that is very strange, here is a recent build from us that uses the same version of node which works. https://travis-ci.org/Automattic/node-canvas/jobs/82633575

It's strange that all libraries gives the same error as well...

@asturur
Copy link
Member Author

asturur commented Oct 5, 2015

We are using a old version of jsdom. may it be the problem?

kangax added a commit that referenced this pull request Oct 5, 2015
Fix itext onInput with selected text
@kangax kangax merged commit b4a2bf6 into fabricjs:master Oct 5, 2015
@asturur asturur deleted the fix-ite branch October 5, 2015 15:33
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

Successfully merging this pull request may close these issues.

IText/Textbox - The first character is ignored when you type after selecting all text
3 participants