How to force the element drop-down box to lose focus

clipboard.png

clipboard.png
the drop-down list for element is now required to lose focus after the drop-down list has selected an item, but none of the current writing methods have been implemented

Dec.22,2021

listens for changes in values in watch and removes focus when values change. It's simple


your writing this way has no effect because it is a drop-down component provided by element-ui. If I remember correctly, this drop-down box is actually a set of dom nodes wrapped by a div. It should be written like this to have an effect:

// divinput
document.getElementById("subject").querySelector("input").blur();
Menu