You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @QRenjie! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to resolve the issue you've encountered.
The issue you're experiencing with the select component in ViewUIPlus, where options cannot be deleted unless the component is focused or fully within the viewport, is related to how the component manages focus and deletion events.
Focus Requirement for Deletion: The select component uses the isFocused data property to determine if it should allow deletion of options. If the component is not focused, the deletion logic is not triggered. This is controlled by the @on-input-focus and @on-input-blur events, which update the isFocused state [1].
Viewport Interaction: The issue of needing the component to be fully within the viewport to delete options might be related to how the component handles focus and click events. The removeTag method, which handles the deletion of options, is only executed if the component is not disabled and is focused [2].
To address this, you might need to adjust the component's logic to allow deletion without requiring focus or being fully visible in the viewport. This could involve modifying the conditions under which the removeTag method is called or adjusting the focus management logic to better handle interactions when part of the component is outside the viewport.
Environment
windows/chomre-Version 131.0.6778.86 (Official Build) (64-bit)/vue2
Reproduction link
https://www.iviewui.com/view-ui-plus/component/form/select#create
Steps to reproduce
只有在select聚焦或在视口中才能删除
What is expected?
What is actually happening?
只有在select聚焦或在视口中才能删除
The text was updated successfully, but these errors were encountered: