Remove select-on-focus from ft-input (#2974)

* 2622 Remove select-on-focus behaviour from ft-input.

Replace this with show-clear-text-button.

* 2622 Make channel search a little wider so placeholder not truncated.

Co-authored-by: Simon Epstein <simon.epstein@67bricks.com>
This commit is contained in:
Simon Epstein 2022-12-19 13:01:09 +00:00 committed by GitHub
parent bcddcd1fe6
commit 7c4dfefb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 10 deletions

View File

@ -45,10 +45,6 @@ export default Vue.extend({
type: Boolean,
default: false
},
selectOnFocus: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
@ -262,9 +258,6 @@ export default Vue.extend({
handleFocus: function(e) {
this.searchState.showOptions = true
if (this.selectOnFocus) {
e.target.select()
}
},
updateVisibleDataList: function () {

View File

@ -80,7 +80,6 @@
:placeholder="$t('Search / Go to URL')"
class="searchInput"
:is-search="true"
:select-on-focus="true"
:data-list="searchSuggestionsDataList"
:spellcheck="false"
:show-clear-text-button="true"

View File

@ -74,7 +74,7 @@
}
.channelSearch {
width: 200px;
width: 220px;
align-self: flex-end;
}

View File

@ -96,7 +96,7 @@
</div>
<ft-input
:placeholder="$t('Channel.Search Channel')"
:select-on-focus="true"
:show-clear-text-button="true"
class="channelSearch"
@click="newSearch"
/>