mirror of https://github.com/keeweb/keeweb.git
Support removing custom fields by emptying their title, too
This commit is contained in:
parent
a6c97e496e
commit
20ed2fd33c
|
@ -68,6 +68,11 @@ const FieldViewCustom = FieldViewText.extend({
|
|||
if (newTitle && newTitle !== this.model.title) {
|
||||
this.model.title = newTitle;
|
||||
this.model.titleChanged = true;
|
||||
} else if (newTitle === '') {
|
||||
this.trigger('change', {
|
||||
field: '$' + this.model.title,
|
||||
val: ''
|
||||
});
|
||||
}
|
||||
this.$el.find('.details__field-label').text(this.model.title);
|
||||
delete this.labelInput;
|
||||
|
|
Loading…
Reference in New Issue