Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

placeholder is not shown #23

Open
Yatufo opened this issue Feb 8, 2016 · 4 comments
Open

placeholder is not shown #23

Yatufo opened this issue Feb 8, 2016 · 4 comments
Assignees

Comments

@Yatufo
Copy link

Yatufo commented Feb 8, 2016

No description provided.

@ghost
Copy link

ghost commented Feb 9, 2016

I had the same issue. It shows placeholder in Mozilla but not in chrome so i added this style and it shows up

textarea.sa-realArea { -webkit-text-fill-color: inherit;}

@aurbano
Copy link
Owner

aurbano commented Feb 10, 2016

Interesting, I'll take a look and test this in other browsers
Thanks!

@aurbano aurbano self-assigned this Feb 10, 2016
@NitinStar
Copy link

I had the same issue. i have changed style of fakearea Div
as .sa-fakeArea {
color: transparent; }.
and removed color property in smart-area.js. it fix overlap text issue also.

@RishikeshVedpathak
Copy link

RishikeshVedpathak commented Jan 26, 2017

Here is a solution,

  1. In smart-area.css change textarea.sa-realArea to
    textarea.sa-realArea {
    -webkit-text-fill-color: inherit;
    }

  2. Add below code in Scope Watches -
    $scope.$watch('areaData', function(){
    $scope.trackCaret();
    // TODO Track caret on another fake area, so I don't have to recalculate autocomplete triggers every time the cursor moves.
    checkTriggers();

var saRealArea = $('textarea.sa-realArea');
if ($scope.areaData.length) {
saRealArea.css({
webkitTextFillColor: 'transparent'
});
} else {
saRealArea.css({
webkitTextFillColor: 'inherit'
});
}

});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants