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

SimpleTextarea does not show placeHolder #205

Open
xmedeko opened this issue Sep 24, 2023 · 0 comments
Open

SimpleTextarea does not show placeHolder #205

xmedeko opened this issue Sep 24, 2023 · 0 comments

Comments

@xmedeko
Copy link
Contributor

xmedeko commented Sep 24, 2023

I have SimpleTextarea with placeHolder:

<textarea data-dojo-type="dijit/form/SimpleTextarea" data-dojo-props="placeHolder:'Text area placeholder'></textarea>

but the placeHolder is not shown, because although SimpleTextarea descents from TextBox, it changes templateString and the placeHolder has nowhere to attach in

dijit/form/TextBox.js

Lines 68 to 73 in 8ab4cdc

this._phspan = domConstruct.create('span', {
// dijitInputField class gives placeHolder same padding as the input field
// parent node already has dijitInputField class but it doesn't affect this <span>
// since it's position: absolute.
className: 'dijitPlaceHolder dijitInputField'
}, this.textbox, 'after');
(because this.textbox has no parentElement).

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

1 participant