Skip to content

Commit

Permalink
fix: input item in ios14 (#192)
Browse files Browse the repository at this point in the history
* fix: iOS 14 dropdown options height is lost

* fix: iOS 14.8,The input method causes abnormal input content
  • Loading branch information
sunzongzheng authored Sep 8, 2024
1 parent 2feed79 commit 6f06eb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/app/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@
.hope-ui-dark ::-webkit-scrollbar-thumb:vertical:active {
background-color: rgb(58, 58, 58);
}

.hope-select__option {
flex-shrink: 0;
}
2 changes: 1 addition & 1 deletion src/pages/manage/storages/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Item = (props: ItemProps) => {
type={props.name == "password" ? "password" : "text"}
readOnly={props.readonly}
value={props.value as string}
onInput={
onChange={
props.type === Type.String
? (e) => props.onChange?.(e.currentTarget.value)
: undefined
Expand Down

0 comments on commit 6f06eb0

Please sign in to comment.