callstack / callstack/react-native-paper
SearchBar has phantom clickable invisible trailing area (right side), without anyway to disable
- Ngôn ngữ chính
- TypeScript
- Star
- 14.5k
- Fork
- 2.2k
- Merge trung bình
- 5 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
### Current behaviour
The SearchBar component has a clickable invisible area on the right side of the input

### Expected behaviour
The SearchBar should not have any clickable areas that are invisible on the right side of the input. Ideally, it should look something like this when the search bar is empty

### How to reproduce?
It looks like the issue is isolated to the component itself. This is what the component might look like:
```
setSearch(prev)}
value={search}
clearIcon={undefined}
onIconPress={undefined}
onTraileringIconPress={undefined}
traileringIcon={undefined}
onClearIconPress={undefined}
onPress={undefined}
/>
```
### What have you tried so far?
As seen in above, I have tried to set all the known relevant properties to `undefined`, thinking that maybe it was a configuration issue. But the issue still seems to persist despite setting all these properties to `undefined`.
### Your Environment
| software | version
| --------------------- | -------
| react-native | 0.74.5
| react-native-paper | 5.12.5
| expo sdk | 51.0.39
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề với ví dụ Searchbar được cung cấp và xác định phần triển khai của component SearchBar cùng các bài kiểm thử liên quan. Theo dõi cách vùng trailing được render khi traileringIcon, onTraileringIconPress, clearIcon và các handler khác không được định nghĩa; hoàn thành khi thanh trống không có vùng có thể nhấp vô hình ở phía bên phải.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react-native, typescript
- Lĩnh vực
- frontend, mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100