mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 18:50:54 +00:00
FF: Allow TextBox to accept "placeholder" as an input
This commit is contained in:
parent
941b4425b9
commit
c2be1a04ec
@ -65,6 +65,7 @@ export class TextBox extends util.mix(VisualStim).with(ColorMixin)
|
|||||||
opacity,
|
opacity,
|
||||||
depth,
|
depth,
|
||||||
text,
|
text,
|
||||||
|
placeholder,
|
||||||
font,
|
font,
|
||||||
letterHeight,
|
letterHeight,
|
||||||
bold,
|
bold,
|
||||||
@ -98,7 +99,7 @@ export class TextBox extends util.mix(VisualStim).with(ColorMixin)
|
|||||||
);
|
);
|
||||||
this._addAttribute(
|
this._addAttribute(
|
||||||
"placeholder",
|
"placeholder",
|
||||||
text,
|
placeholder,
|
||||||
"",
|
"",
|
||||||
this._onChange(true, true),
|
this._onChange(true, true),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user