FTS 's issues MEGA THREAD
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 3
- Avg merge
- 7m
- Merged PRs (30d)
- 3
Description
to somehow persist ele border draw on dragenter
webpack://Mashlib/node_modules/solid-ui/lib/widgets/dragAndDrop.js
`var dragenterListener = function dragenterListener(e) {
debug.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect);
if (this.style) {
// necessary not sure when
if (!this.savedStyle) {
this.savedStyle = {};
this.savedStyle.border = this.style.border;
this.savedStyle.backgroundColor = this.style.backgroundColor;
this.savedStyle.borderRadius = this.style.borderRadius;
}
this.style.backgroundColor = '#ccc';
this.style.border = '0.25em dashed black';
this.style.borderRadius = '0.3em';
}
e.dataTransfer.dropEffect = 'link';
debug.log('dragenter event dropEffect 2: ' + e.dataTransfer.dropEffect);
};
var dragleaveListener = function dragleaveListener(e) {
debug.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect);
if (this.savedStyle) {
this.style.border = this.savedStyle.border;
this.style.backgroundColor = this.savedStyle.backgroundColor;
this.style.borderRadius = this.savedStyle.borderRadius;
} else {
this.style.backgroundColor = 'white';
this.style.border = '0em solid black';
}
};`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open webpack://Mashlib/node_modules/solid-ui/lib/widgets/dragAndDrop.js and inspect the dragenterListener and dragleaveListener behavior. Reproduce the drag interaction and determine when the element's border should persist. Done means the intended border styling remains correctly after dragenter without breaking the existing dragleave restoration behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100