MCPcopy
hub / github.com/editablejs/editable / onChange

Function onChange

packages/plugins/list/src/task/plugin/with-task-list.tsx:120–127  ·  view source on GitHub ↗
(checked: boolean)

Source from the content-addressed store, hash-verified

118 onRenderLabel: element => {
119 const { checked } = element as TaskList
120 const onChange = (checked: boolean) => {
121 if (Editable.isReadOnly(editor)) return
122 Transforms.setNodes<TaskList>(
123 editor,
124 { checked },
125 { at: Editable.findPath(editor, element) },
126 )
127 }
128 return <TaskElement checked={checked ?? false} onChange={onChange} />
129 },
130 isAutoUpdateLabelStyle: false,

Callers 11

withEditableFunction · 0.85
handleChangeFunction · 0.85
handleMouseUpFunction · 0.85
openFileDialogFunction · 0.85
withSlashToolbarFunction · 0.85
withMentionFunction · 0.85
TaskElementFunction · 0.85
withYCursorsFunction · 0.85
withYHistoryFunction · 0.85
withYjsFunction · 0.85
createEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected