Closed buttflattery closed 5 years ago
Can you debug your code and find out which input is being displayed on your browser console from which view?
@kartik-v I already added the input in the post above by copying from the console
<input type="text" id="w0" class="form-control hidden-xs" name="kv-node-selected" value="" data-key="1" data-krajee-treeview="treeview_60a25e70">
it is coming from the renderWidget()
method inside the TreeView.php
at the very end of the method you are concatenating the input see below, i have ruled out my custom views and just using default
public function renderWidget()
{
$content = strtr(
$this->mainTemplate, [
'{wrapper}' => $this->renderWrapper(),
'{detail}' => $this->renderDetail(),
]
);
return strtr(
$content, [
'{heading}' => $this->renderHeading(),
'{search}' => $this->renderSearch(),
'{toolbar}' => $this->renderToolbar(),
]
) . "\n" .
Html::textInput('kv-node-selected', $this->value, $this->options) . "\n";
}
Ok will create an enhancement. This is more to do with Krajee Base.
Prerequisites
master
branch of yii2-tree-manager.There is a strange input at the bottom that is appearing in the treeview
Looking into the inspector it shows the input as
<input type="text" id="w0" class="form-control hidden-xs" name="kv-node-selected" value="" data-key="1" data-krajee-treeview="treeview_60a25e70">
Steps to reproduce the issue
Below is the code provided
Environment
Browsers
Operating System
Libraries
Isolating the problem