Skip to content

Commit fadfd7d

Browse files
authored
feat(QSelect): prevent target and autocomplete input from jumping on new row quasarframework#12031 (quasarframework#12036)
1 parent 2f378a2 commit fadfd7d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ui/src/components/select/QSelect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ export default Vue.extend({
947947
h('div', {
948948
ref: 'target',
949949
key: 'd_t',
950-
staticClass: 'no-outline',
950+
staticClass: 'q-select__focus-target',
951951
attrs: {
952952
id: this.targetUid,
953953
tabindex: this.tabindex,
@@ -964,7 +964,7 @@ export default Vue.extend({
964964
if (typeof this.autocomplete === 'string' && this.autocomplete.length > 0) {
965965
child.push(
966966
h('input', {
967-
staticClass: 'q-select__autocomplete-input no-outline',
967+
staticClass: 'q-select__autocomplete-input',
968968
attrs: { autocomplete: this.autocomplete },
969969
on: cache(this, 'autoinp', {
970970
keyup: this.__onTargetAutocomplete

ui/src/components/select/QSelect.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
&--padding
1313
padding-left: 4px
1414

15+
&__focus-target,
1516
&__autocomplete-input
17+
position: absolute
18+
outline: 0 !important
1619
width: 0
1720
height: 0
1821
padding: 0

ui/src/components/select/QSelect.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
&--padding
1313
padding-left: 4px
1414

15+
&__focus-target,
1516
&__autocomplete-input
17+
position: absolute
18+
outline: 0 !important
1619
width: 0
1720
height: 0
1821
padding: 0

0 commit comments

Comments
 (0)