Markdown support in card description and comment, fixes for mobile devices, update dependencies

This commit is contained in:
Maksim Eltyshev
2019-10-03 03:02:46 +05:00
parent 530e4c26ee
commit 18f0cc59dd
11 changed files with 374 additions and 14 deletions

View File

@@ -47,14 +47,14 @@ const EditDescription = React.forwardRef(({ children, defaultValue, onUpdate },
);
const handleChildrenClick = useCallback(() => {
open();
if (!getSelection().toString()) {
open();
}
}, [open]);
const handleFieldKeyDown = useCallback(
(event) => {
if (event.key === 'Enter') {
event.preventDefault();
if (event.ctrlKey && event.key === 'Enter') {
submit();
}
},