Element-ui's Select selector switch back
Requirement: After selecting a certain school year, you need to ask whether to confirm?
step:
- Monitor the change when selected, save the old selected id
The selected id is yearId - Use @change to switch methods
- Possible problems?
- After selecting Ask to cancel or confirm, the next box will be re-expanded
- solve:
- define ref
- Called after checking to ask to cancel or confirm
this.$refs.selectRef.blur();