Skip to content

Commit

Permalink
πŸ› Action sheet opening during re-ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
homostellaris committed Jul 17, 2024
1 parent fa056f8 commit 352ef6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,10 @@ export const Important = ({ todos }: { todos: any[] }) => {
{todos.map(todo => (
<IonItem
button
onClick={_event => {
onClick={event => {
// Prevent the action sheet from opening when reordering
if (event.target['localName'] === 'ion-item') return

present(todo, {
buttons: [
{
Expand Down

0 comments on commit 352ef6b

Please sign in to comment.