ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
192 stars 177 forks source link

HideFormAccessoryBar is not realtime #119

Closed tmishutin closed 4 years ago

tmishutin commented 4 years ago

It seems like hideFormAccessoryBar needs a keyboard reload, before it will apply.

Here is a dropdown: select(:value="statusId", @focus="showStatus", @blur="hideStatus", @change="onChange").needsclick.needsfocus option(value=0) Select something option(v-for="(item, key) in statuses", :value="item.id") {{item.name}}

function hideStatus: showStatus(){ window.Keyboard.hideFormAccessoryBar(false); exec(success, null, "CDVIonicKeyboard", "hideFormAccessoryBar", [false]); },

After opening a dropdown for a first time, I get don't a bar. But if I close dropdown and open it again, dropdown will be there.

What I want is to apply a value to keyboard dynamically after click on element.

Am I doing something wrong or is there a way to force keyboard to reload with new hideFormAccessoryBar option?

Thank's!

tmishutin commented 4 years ago

Solved with touchstart and blur events.