Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[input] can't be focused by click #153

Open
ChrisCindy opened this issue Nov 2, 2024 · 0 comments
Open

[input] can't be focused by click #153

ChrisCindy opened this issue Nov 2, 2024 · 0 comments
Labels
bug Something isn't working p2

Comments

@ChrisCindy
Copy link
Contributor

ChrisCindy commented Nov 2, 2024

Related Uni App Components

when there is no value of input, the input element will have a placeholder element:
Image

its style is like:

.uni-input-placeholder {
    position: absolute;
    top: auto !important;
    left: 0;
    color: red;
    overflow: hidden;
    text-overflow: clip;
    white-space: pre;
    word-break: keep-all;
    pointer-events: none;
    line-height: inherit;
}

only if there is value, the placeholder element will not show (use display: none)
in webf, the placeholder element cause the input can't be clicked (which is probably that pointer-events: none doesn't work)

Code example

<template>
   <view class="uni-input-wrapper">
       <input class="uni-input" placeholder="请输入" />
   </view>
</template>

Expected results

No response

Actual results

No response

@ChrisCindy ChrisCindy added the bug Something isn't working label Nov 2, 2024
@ChrisCindy ChrisCindy removed the todo label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p2
Projects
None yet
Development

No branches or pull requests

2 participants