1
0
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:
Todd Parsons 2023-01-26 12:47:28 +00:00
parent 941b4425b9
commit c2be1a04ec

View File

@ -65,6 +65,7 @@ export class TextBox extends util.mix(VisualStim).with(ColorMixin)
opacity,
depth,
text,
placeholder,
font,
letterHeight,
bold,
@ -98,7 +99,7 @@ export class TextBox extends util.mix(VisualStim).with(ColorMixin)
);
this._addAttribute(
"placeholder",
text,
placeholder,
"",
this._onChange(true, true),
);