File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -808,6 +808,10 @@ field[ns.ui('Choice').uri] = function (
808
808
for ( p in possibleProperties . dp ) possible . push ( kb . fromNT ( p ) )
809
809
opts . disambiguate = true
810
810
}
811
+
812
+ const object = kb . any ( subject , property )
813
+ if ( object ) possible . push ( object )
814
+
811
815
return sortByLabel ( possible )
812
816
}
813
817
@@ -1775,9 +1779,6 @@ export function makeSelectForChoice (
1775
1779
if ( options . multiSelect ) select . setAttribute ( 'multiSelect' , 'true' )
1776
1780
select . currentURI = null
1777
1781
1778
- const object = kb . any ( subject , predicate )
1779
- if ( object ) select . currentURI = object
1780
-
1781
1782
for ( const uri in uris ) {
1782
1783
select . appendChild ( createOption ( uri ) )
1783
1784
}
@@ -1892,6 +1893,5 @@ export function makeSelectForChoice (
1892
1893
select . addEventListener ( 'change' , onChange , false )
1893
1894
}
1894
1895
1895
- select . refresh ( )
1896
1896
return select
1897
1897
} // makeSelectForChoice
You can’t perform that action at this time.
0 commit comments