1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

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 ed348cf7bc
commit 2fda41b982
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();
}
},