mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
FF: Allow TextBox to accept placeholder as input
This commit is contained in:
parent
61a2f4286a
commit
0c578e26d0
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "psychojs",
|
||||
"version": "2022.2.5",
|
||||
"version": "2022.3.1",
|
||||
"private": true,
|
||||
"description": "Helps run in-browser neuroscience, psychology, and psychophysics experiments",
|
||||
"license": "MIT",
|
||||
|
@ -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