Vue-multiselect: Press backspace with input clear pointer hidden

Created on 10 Jun 2017  路  6Comments  路  Source: shentao/vue-multiselect

when i want clear and search again my pointer in hidden how fix this ...??

All 6 comments

Add :close-on-select="false".

in searchable mode (multitag is false) when i pressed backspace and clear text, by pressing more backspace focus is lost from input text. how can i prevent from focus lost of my input text?

Working on it :)

pleas harry man i need this
thank you very much...

i solve this problem by add this func inside @search-change

                    asyncSearch(doctorName,id) {
                                                        // here i select my input tag and value
                            var thisVal = document.querySelector(`.${id} input`).value
                            var thisInput = document.querySelector(`.${id} input`)
                            thisInput.addEventListener("keydown", KeyCheck);  
                            function KeyCheck(event,elemnet)

                            {
                                elemnet = thisInput
                                var keyId = event.keyCode
                                if (elemnet.value.length == 0 && keyId == 8) {
                                                                       //this is my arry
                                    vm.listSearch = []
                                                                       //this is my element input
                                    elemnet.focus()
                                }

                            }

but this is temporary

Has this been fixed?
Thanks in advance

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefanheimann picture stefanheimann  路  4Comments

focussing picture focussing  路  3Comments

wujekbogdan picture wujekbogdan  路  4Comments

icebob picture icebob  路  4Comments

andreasvirkus picture andreasvirkus  路  3Comments