Skip to content

Commit 4552c69

Browse files
committed
Attach tooltip to item view instead of label in class picker (#448 #494)
1 parent 0b1ec3f commit 4552c69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/forms/ontology-class-picker-item-view.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ import { extend } from 'lodash';
33
import { CompositeView } from '../core/view';
44
import LabelView from '../label/label-view';
55
import FlatItem from '../common-adapters/flat-item-model';
6+
import attachTooltip from '../tooltip/tooltip-view';
67

78
export default class OntologyClassPickerItemView extends CompositeView<FlatItem> {
89
labelView: LabelView;
910

1011
initialize(): this {
1112
this.labelView = new LabelView({
12-
model: this.model
13+
model: this.model,
14+
toolTipSetting: false,
1315
});
16+
attachTooltip(this, { model: this.model });
1417
this.listenTo(this.model, { 'focus': this.onFocus, 'blur': this.onBlur });
1518
return this.render();
1619
}

0 commit comments

Comments
 (0)