diff --git a/core/modules/widgets/select.js b/core/modules/widgets/select.js
index cf094687b..d860d42cf 100644
--- a/core/modules/widgets/select.js
+++ b/core/modules/widgets/select.js
@@ -145,6 +145,7 @@ SelectWidget.prototype.execute = function() {
this.selectDefault = this.getAttribute("default");
this.selectMultiple = this.getAttribute("multiple", false);
this.selectSize = this.getAttribute("size");
+ this.selectTooltip = this.getAttribute("tooltip");
// Make the child widgets
var selectNode = {
type: "element",
@@ -160,6 +161,9 @@ SelectWidget.prototype.execute = function() {
if(this.selectSize) {
$tw.utils.addAttributeToParseTreeNode(selectNode,"size",this.selectSize);
}
+ if(this.selectTooltip) {
+ $tw.utils.addAttributeToParseTreeNode(selectNode,"title",this.selectTooltip);
+ }
this.makeChildWidgets([selectNode]);
};
@@ -169,7 +173,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
SelectWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
// If we're using a different tiddler/field/index then completely refresh ourselves
- if(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex) {
+ if(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {
this.refreshSelf();
return true;
// If the target tiddler value has changed, just update setting and refresh the children
diff --git a/editions/tw5.com/tiddlers/widgets/SelectWidget.tid b/editions/tw5.com/tiddlers/widgets/SelectWidget.tid
index 51aede5a1..47c1117a6 100644
--- a/editions/tw5.com/tiddlers/widgets/SelectWidget.tid
+++ b/editions/tw5.com/tiddlers/widgets/SelectWidget.tid
@@ -1,6 +1,6 @@
caption: select
created: 20131024141900000
-modified: 20160429175220241
+modified: 20190304122040876
tags: Widgets
title: SelectWidget
type: text/vnd.tiddlywiki
@@ -35,6 +35,7 @@ The content of the `<$select>` widget should be one or more HTML `