-
Notifications
You must be signed in to change notification settings - Fork 1.3k
wip: table inline editing #8754
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
base: main
Are you sure you want to change the base?
Conversation
Build successful! 🎉 |
Build successful! 🎉 |
…nvalid state, click off
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
@@ -181,7 +181,7 @@ function getDelta( | |||
// Note that these values are with respect to the visual viewport (aka 0,0 is the top left of the viewport) | |||
let boundaryStartEdge = boundaryDimensions.scroll[AXIS[axis]] + padding; | |||
let boundaryEndEdge = boundarySize + boundaryDimensions.scroll[AXIS[axis]] - padding; | |||
let startEdgeOffset = offset - containerScroll + containerOffsetWithBoundary[axis] - boundaryDimensions[AXIS[axis]]; | |||
let startEdgeOffset = offset - containerScroll + containerOffsetWithBoundary[axis]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this change for a bit, might be a bug in our positioning code
…plementation to make generic, fix density, individual cell saving state, use touch detection for showing all the time
@@ -28,7 +28,8 @@ export interface AriaTableCellProps { | |||
* Please use onCellAction at the collection level instead. | |||
* @deprecated | |||
**/ | |||
onAction?: () => void | |||
onAction?: () => void, | |||
focusMode?: 'cell' | 'child' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change we'd need to make if we want to support edit mode on some cells vs others
Build successful! 🎉 |
@@ -587,6 +593,7 @@ export function PickerItem(props: PickerItemProps): ReactNode { | |||
context={TextContext} | |||
value={{ | |||
slots: { | |||
[DEFAULT_SLOT]: {styles: label({size})}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just a missing feature we should really have in S2
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
# Conflicts: # packages/@react-spectrum/s2/src/ActionButton.tsx # packages/@react-spectrum/s2/stories/TableView.stories.tsx # packages/react-aria-components/src/Button.tsx # packages/react-aria-components/test/Button.test.js
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Closes
For demo purposes right now
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: