A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix selected color not showing
ammarahm-ed9e8faf8fb4f1
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js b/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.jsindex a3809fd58..1c3947aaa 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js@@ -34,13 +34,14 @@ const ColorItem = ({value, format}) => {let formats = Object.keys(data);let _color;if (data[format] !== null) {+if (data[format]?.startsWith('#')) {_color = data[format];} else {_color = rgbToHex(data[format]);}}- if (formats.indexOf(format) > -1 && _color === format) {+ if (formats.indexOf(format) > -1 && _color === value) {setSelected(true);return;}