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

Update multi select input to stay on the same line when typing with tags #70

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

Christopher-Masselli
Copy link

Moved the input inside of the tags container so it will stay inline with them when typing.

@Christopher-Masselli Christopher-Masselli changed the base branch from dev to cognito February 16, 2022 17:53
v-model="query"
@input="debouncedQueryChange"
v-if="filterable"
:style="{ 'flex-grow': '1', width: selected.length > 0 ? (query.length > 0 ? query.length + 2 + 'ch':'2ch' ) : '100%', 'max-width': '100%' }"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the width calculation into a computed since it is a bit hairy for inlining into the template.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved into computed, multiSelectInputWidth

@tskimmett tskimmett merged commit f06133b into cognito Feb 16, 2022
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