Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder is not removed #12

Open
truedl opened this issue Aug 23, 2019 · 3 comments
Open

Placeholder is not removed #12

truedl opened this issue Aug 23, 2019 · 3 comments

Comments

@truedl
Copy link

truedl commented Aug 23, 2019

When I'm writing the username the placeholder is not removed. See the screenshot below
image

Code:

const username_input = new PIXI.TextInput({
        input: {
            fontSize: '38px',
            padding: '14px',
            width: '400px',
            color: '#26272E'
        }, 
        box: {
            default: {fill: 0xFFFFFF, rounded: 12, stroke: {color: 0xC8C8C8, width: 3}}
        }
    });
username_input.x = app.screen.width/2-200;
username_input.y = app.screen.height/2;

username_input.placeholder = 'Username'

app.stage.addChild(username_input);
@Mwni
Copy link
Owner

Mwni commented Aug 23, 2019

Are you on a mobile device?

@truedl
Copy link
Author

truedl commented Aug 23, 2019

Nope. Desktop PC Firefox browser.

@Mwni
Copy link
Owner

Mwni commented Aug 24, 2019

Cannot reproduce this bug.
Can you confirm the input event is actually firing?
A jsfiddle or something would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants