diff --git a/arches_references/media/js/viewmodels/reference-select.js b/arches_references/media/js/viewmodels/reference-select.js index 6946d08..e2591b6 100644 --- a/arches_references/media/js/viewmodels/reference-select.js +++ b/arches_references/media/js/viewmodels/reference-select.js @@ -9,7 +9,7 @@ define([ var ReferenceSelectViewModel = function(params) { var self = this; - params.configKeys = ['placeholder']; + params.configKeys = ['placeholder', 'defaultValue']; this.multiple = !!ko.unwrap(params.node.config.multiValue); this.displayName = ko.observable(''); this.selectionValue = ko.observable([]); // formatted version of this.value that select2 can use diff --git a/arches_references/templates/views/components/widgets/reference-select.htm b/arches_references/templates/views/components/widgets/reference-select.htm index dfa9263..ee75a57 100644 --- a/arches_references/templates/views/components/widgets/reference-select.htm +++ b/arches_references/templates/views/components/widgets/reference-select.htm @@ -41,6 +41,18 @@ > +
+ +
+
+