1
0
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:
Alain Pitiot 2023-02-02 12:56:23 +01:00
parent 61a2f4286a
commit 0c578e26d0
2 changed files with 3 additions and 2 deletions

View File

@ -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",

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),
);