Fixed #7364 - Select: unexpected horizontal scroll
parent
b80bd6d784
commit
2911768e82
|
@ -47,7 +47,7 @@
|
|||
@keydown="onKeyDown"
|
||||
v-bind="ptm('label')"
|
||||
>
|
||||
<slot name="value" :value="d_value" :placeholder="placeholder">{{ label === 'p-emptylabel' ? ' ' : label ?? 'empty' }}</slot>
|
||||
<slot name="value" :value="d_value" :placeholder="placeholder">{{ label === 'p-emptylabel' ? ' ' : (label ?? 'empty') }}</slot>
|
||||
</span>
|
||||
<slot v-if="isClearIconVisible" name="clearicon" :class="cx('clearIcon')" :clearCallback="onClearClick">
|
||||
<component :is="clearIcon ? 'i' : 'TimesIcon'" ref="clearIcon" :class="[cx('clearIcon'), clearIcon]" @click="onClearClick" v-bind="ptm('clearIcon')" data-pc-section="clearicon" />
|
||||
|
@ -919,7 +919,7 @@ export default {
|
|||
const element = findSingle(this.list, `li[id="${id}"]`);
|
||||
|
||||
if (element) {
|
||||
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
|
||||
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
||||
} else if (!this.virtualScrollerDisabled) {
|
||||
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue