Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Todo-Storybook
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Madhankumar
Todo-Storybook
Commits
47347e1f
Commit
47347e1f
authored
Sep 21, 2023
by
Madhankumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue resolved in task
parent
4b7404c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
db.json
db.json
+1
-7
index.js
src/components/top-level/task/index.js
+1
-1
No files found.
db.json
View file @
47347e1f
{
{
"task"
:
[
"task"
:
[
{
{
"title"
:
""
,
"title"
:
"
12223
"
,
"isCompleted"
:
false
,
"isCompleted"
:
false
,
"id"
:
1
"id"
:
1
},
{
"title"
:
""
,
"isCompleted"
:
false
,
"id"
:
2
}
}
]
]
}
}
\ No newline at end of file
src/components/top-level/task/index.js
View file @
47347e1f
...
@@ -63,7 +63,7 @@ function Task({ id = 1, title, isCompleted, onChange, onDelete }) {
...
@@ -63,7 +63,7 @@ function Task({ id = 1, title, isCompleted, onChange, onDelete }) {
const
handler
=
setTimeout
(()
=>
{
const
handler
=
setTimeout
(()
=>
{
if
(
textarea_ref
.
current
.
value
!==
title
)
{
if
(
textarea_ref
.
current
.
value
!==
title
)
{
onChange
({
id
,
title
:
debouncetitle
});
onChange
({
id
,
title
:
debouncetitle
});
toast
.
success
(
"Task updated"
);
//
toast.success("Task updated");
}
}
},
2000
);
},
2000
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment