User-picker Sometimes fail

I had developed a page use dialog2 ,realize the pop-up page .
The code is :$webResourceManager.requireResource(“com.atlassian.auiplugin:aui-dialog2”)

And assignee is a form element,I used user-picker to realize assignee selected and input

But i first in to issue view page,and click “创建Merge Request” the element “经办人” is ok,can input word to search users .
When the issue’s workflow goes down to other step,I click “创建Merge Request” ,and I found user-picker failed .

I found these two codition diffients :

My code is

I wonder why this happened ?

And vm page is :
mergemain.txt (8.0 KB)