mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40: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,
|
||||
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),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user