BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
50 stars 16 forks source link

remove node avatar #91

Closed zeraati closed 6 months ago

zeraati commented 7 months ago

How to remove the registered avatar for a node? There is no remove button When the avatar text box is empty and the save button is pressed, the black avatar is shown. image

ZornitsaPesheva commented 7 months ago

Please isolate the issue in a code example here: https://code.balkan.app/familytreejs/getting-started#JS

zeraati commented 7 months ago

https://code.balkan.app/remove-image#JS https://file.io/0F95df49UtR9

ZornitsaPesheva commented 7 months ago

Do you have images in your data?

zeraati commented 7 months ago

Do you have images in your data? Yes Problem: When we empty the text box containing the address of the image to delete the node's avatar The application shows a black box even though there is no text in the text box Of course, if the page is reloaded, the problem will be solved, but before that the black image will be displayed

ZornitsaPesheva commented 7 months ago

Do you expect when you delete the hyperlink to the image, the box to be deleted too?

zeraati commented 7 months ago

yes When the avatar | upload image text box is empty or has no text, the image box should not be displayed

plamen-peshev commented 6 months ago

we have implemented requested functionality

get the latest version from here and test