Draggable react bootstrap Modal moves the browser scroll bar
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, react
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start by reproducing the example with react-bootstrap Modal wrapped in a Draggable component, using the modal header as the handle and a body large enough to create a browser scrollbar. Confirm the current scrollbar movement and define done as moving the modal without moving the browser scrollbar.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
If I wrap a Modal object from react-bootstrap within a Draggable tag, and if the Modal is too large for the browser window so that a vertical scroll bar appears in the browser, moving the Modal object with my mouse also moves the vertical scroll bar with it. The vertical scroll bar should stay right where it is and the Modal object should move independently with the mouse.
Here is a code snippet:
import { Modal } from 'react-bootstrap'
import Draggable from 'react-draggable'
export default class MyDraggableModal extends Component {
render() {
return (
<Draggable handle=".modal-header">
<Modal animation={false} backdrop={false} show={true}>
<Modal.Header>My Header</Modal.Header>
<Modal.Body>
A large dialog so that vertical scroll bars will appear when the browser is resized too small....
</Modal.Body>
<Modal.Footer>My Footer</Modal.Footer>
</Modal>
</Draggable>
)
}
}
- Ngôn ngữ chính
- JavaScript
- Star
- 9.3k
- Fork
- 1k
- Merge trung bình
- 3 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của react-grid-layout/react-draggable
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
react-grid-layout/react-draggable#784 · 4 bình luận · 2 reaction ·
-
V4.5.0 Chrome Extension Error Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
react-grid-layout/react-draggable#782 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
react-grid-layout/react-draggable#781 · 1 bình luận · 2 reaction ·
-
the new version 4.5.0 会导致系统打包报错 Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
react-grid-layout/react-draggable#780 · 8 bình luận ·
Tất cả issue của react-grid-layout/react-draggable
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
babalae/bettergi-scripts-list#3674 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
githubnext/gh-aw-cao#13143 ·