angular-editable-text icon indicating copy to clipboard operation
angular-editable-text copied to clipboard

I should click twice to enter edit mode

Open burakkilic opened this issue 10 years ago • 5 comments

Hi;

I should click twice to enter edit mode. How can I start to write text after first click?

burakkilic avatar Jul 03 '15 11:07 burakkilic

Hey, I cannot recreate this. After the click it is also focused. Which browser are you using? Does it happen in the demo (http://gabigrin.github.io/angular-editable-text/) too?

GabiGrin avatar Jul 03 '15 12:07 GabiGrin

You are right. It works in your example demo. Something happens with my code but I could't fix. Thank you

UPDATE: It also doesn't work in this plunkr:

http://plnkr.co/edit/K7x7leZDAXvc3V0nM6nJ?p=preview

I tried in chrome.

burakkilic avatar Jul 03 '15 13:07 burakkilic

I have the same issue in your plunkr and on my site. Works fine in the demo. I am using chrome for all 3 tests.

In the demo, he is using 1.2.x - in plunkr 1.4.x. When I updated the plunkr to use 1.2.x, plunkr was working like the demo site. Looks like something to do with angular upgrade.

I wrapped the .focus() line with a timeout and seems to have resolved it.

$timeout(function() { inputElm.focus(); });

rhutchison avatar Jul 16 '15 21:07 rhutchison

Observed the same when using angular 1.4.x - any other way to solve this than the $timeout?

reppners avatar Jul 30 '15 12:07 reppners

Got the same issue. The $timeout workaround didn't fix it for me either.

netizen0911 avatar Sep 17 '15 02:09 netizen0911