Skip to content

Commit 4c726e5

Browse files
author
minjk-bl
committed
Edit placeholder to work fine for suggestinput
1 parent 3624611 commit 4c726e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

visualpython/js/com/com_generatorV2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ define([
376376
type: 'text',
377377
id: obj.name,
378378
class: 'vp-input vp-state',
379+
placeholder: obj.placeholder || 'Select data',
379380
required: obj.required === true
380381
});
381382
vp_generateVarSuggestInput(pageThis.wrapSelector(), obj);

visualpython/js/com/component/SuggestInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ define([
109109
// make attributes
110110
var attributes = Object.keys(this._attributes).map(key => key + '="' + this._attributes[key] + '"').join(" ");
111111

112-
sbTagString.appendFormatLine(`<input type='text' class='{0} {1} {2}' {3} placeholder='{4}' value="{5}" {6}/>`,
112+
sbTagString.appendFormatLine(`<input type="text" class="{0} {1} {2}" {3} placeholder="{4}" value="{5}" {6}/>`,
113113
that.uuid, 'suggest-input-uninit', that._additionalClass, that._compID == "" ? "" : com_util.formatString("id='{0}'", that._compID), that._placeholder, that._value, attributes);
114114

115115
$(document).on(com_util.formatString("focus.init-{0}", that.uuid), com_util.formatString(".{0}.{1}", that.uuid, 'suggest-input-uninit'), function () {

0 commit comments

Comments
 (0)