Skip to content

Commit

Permalink
Merge pull request #465 from uidu-org/fix-editor-flex
Browse files Browse the repository at this point in the history
docs(changeset): Better tabIndex managment for phone fields
  • Loading branch information
apuntovanini authored Sep 16, 2024
2 parents 06c740f + e324ab5 commit dcc0b5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/kind-spoons-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@uidu/data-fields': minor
'@uidu/table': minor
---

Better tabIndex managment for phone fields
1 change: 1 addition & 0 deletions packages/data/data-fields/src/fields/phone/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function Cell<T>({ getValue }: CellContext<T, string>) {
target="_blank"
tw="p-1 ml-auto flex"
rel="noopener noreferrer"
tabIndex={-1}
>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
1 change: 1 addition & 0 deletions packages/data/table/src/components/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function Cell<T, V>({
$pinned={cell.column.columnDef.meta?.pinned}
$index={index}
$height={rowHeight}
role="gridcell"
tabIndex={-1}
onDoubleClick={(e) => {
e.preventDefault();
Expand Down

0 comments on commit dcc0b5f

Please sign in to comment.