Closed wangcansunking closed 6 years ago
Choose the section that applies to you and use the template to help us figure out how we can help you.
v9.3.13
onidle and onsearch (entry Enter) will be called and the value is what is copied.
onidle
onsearch
Enter
var search = ts.ui.ToolBar.search(); search.value = 'Press ENTER here'; search.onidle = search.onsearch = function(value) { ts.ui.Notification.success(value || 'Search cleared'); };
test
clear
I find that it is because the _snapshot of InputSpirit and SearchModel is not updated after click clear.
_snapshot
InputSpirit
SearchModel
That's exactly what happened! Sorry about the bug :grimacing: Thanks for digging in :beer:
Choose the section that applies to you and use the template to help us figure out how we can help you.
Bug report
Tradeshift UI version affected
v9.3.13
Expected Behavior
onidle
andonsearch
(entryEnter
) will be called and the value is what is copied.Actual Behavior
onidle
is not called.Enter
theonsearch
is called but the value is empty.Steps to reproduce
test
in search inputclear
buttonEnter
(optional, if we want to callonsearch
)Screenshots (optional)
Feature request
Description of feature
Example use cases and/or Prototype links
Designs and/or Prototype screenshots