Skip to content

Conversation

@Melkaz
Copy link

@Melkaz Melkaz commented Sep 7, 2014

Sometimes we want to have a dynamic width even when the input is smaller than the placeholder.
To do that, we may drop the width css attribute.

Here is an example. Please input some text, then erase it.
http://jsfiddle.net/mJMpw/695/

The trick is to use the placeholder text as a default if there is no value in the input.

Sometimes we want to have a dynamic width even when the input is smaller than the placeholder.
To do that, we may drop the width css attribute.

Here is an example. Please input some text, then erase it.
http://jsfiddle.net/mJMpw/695/

The trick is to use the placeholder text as a default if there is no value in the input.
@ezhlobo
Copy link

ezhlobo commented Sep 18, 2015

@Melkaz I think it's not a correct default behavior. Maybe control empty state via settings?

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

Successfully merging this pull request may close these issues.

2 participants