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

user_input_filter: Don't autofocus selects #5906

Merged
merged 1 commit into from
Jul 31, 2019
Merged

user_input_filter: Don't autofocus selects #5906

merged 1 commit into from
Jul 31, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jul 30, 2019

Compute > Infra > VMs > VMs accordion,
add an advanced search like "VM.active" "=" "<user input>" - the field needs to be a boolean,
try to use it.

Before: there would be a Choose / True / False select, but chosing anything would just show Choose
Now: you should be able to chose a value.

(And field types other than bool should still have the input autofocused.)


The user input filter autofocuses the first input element,

but pf-select hides the select element and creates its own div.
That div never changes the text inside when chosing options, if the original select is focused.

Making sure we don't autofocus select elements.

Fixes #5896
https://bugzilla.redhat.com/show_bug.cgi?id=1677258

user input filter autofocuses the first input element,

but pf-select hides the select element and creates its own div.
That div never changes the text inside when chosing options, if the original select is focused.

Making sure we don't autofocus select elements.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1677258
@miq-bot
Copy link
Member

miq-bot commented Jul 30, 2019

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/3c285dd167afb16022ea311d894666ad422c195d with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@mzazrivec mzazrivec self-assigned this Jul 31, 2019
@mzazrivec mzazrivec added this to the Sprint 117 Ending Aug 5, 2019 milestone Jul 31, 2019
@mzazrivec mzazrivec merged commit 00fa111 into ManageIQ:master Jul 31, 2019
simaishi pushed a commit that referenced this pull request Jul 31, 2019
user_input_filter: Don't autofocus selects

(cherry picked from commit 00fa111)

https://bugzilla.redhat.com/show_bug.cgi?id=1677258
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit 92b70ccf7541eb5fe486732a2ca8f61e94ee7b3c
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Wed Jul 31 08:40:45 2019 +0200

    Merge pull request #5906 from himdel/user-input-docus
    
    user_input_filter: Don't autofocus selects
    
    (cherry picked from commit 00fa111f87a19d8c18c71831cb6341b3b77fb10c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1677258

@himdel himdel deleted the user-input-docus branch September 3, 2019 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Advanced search - user input for booleans broken
5 participants