Skip to content

Commit

Permalink
Merge pull request #334 from UrbanOS-Public/1214-ada-delete
Browse files Browse the repository at this point in the history
remove preventDefault call
  • Loading branch information
ian-j-abbott-accenture authored Jun 27, 2023
2 parents c18441b + 3519d20 commit e738de9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartcitiesdata/react-discovery-ui",
"version": "2.1.39",
"version": "2.1.40",
"description": "React component for dataset discovery UI",
"main": "./lib/ReactDiscoveryUI.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/user-profile-view/user-profile-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const UserProfileView = (props) => {
className: 'centered',
width: 50,
Cell: ({ original }) => (
<span className='delete-icon' tabIndex='0' aria-label='Delete' role='button' onKeyDownCapture={(event) => { if (event.key === ' ' || event.key === 'Enter') { event.preventDefault() && openDeleteModalForVisualization(original.id) } }} onClick={() => { openDeleteModalForVisualization(original.id) }}>
<span className='delete-icon' tabIndex='0' aria-label='Delete' role='button' onKeyDownCapture={(event) => { if (event.key === ' ' || event.key === 'Enter') { openDeleteModalForVisualization(original.id) } }} onClick={() => { openDeleteModalForVisualization(original.id) }}>
<DeleteIcon />
</span>
)
Expand Down

0 comments on commit e738de9

Please sign in to comment.