Nativescript-ui-feedback: RadAutocompleteTextView doesn't work inside TabView component on iOS

Created on 5 Sep 2017  路  6Comments  路  Source: ProgressNS/nativescript-ui-feedback

Did you verify this is a real problem by searching Stack Overflow?

Yes

Tell us about the problem

When trying to use RadAutocompleteTextView within a TabView, it always returned following error:

CONSOLE ERROR [native code]: ERROR TypeError: undefined is not an object (evaluating 'this._ios.minimumCharactersToSearch = 1') CONSOLE ERROR [native code]: ERROR CONTEXT [object Object] 1 0x10285b6db NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*) 2 0x102f3011e ffi_closure_unix64_inner 3 0x102f30a52 ffi_closure_unix64 4 0x105a8748c -[UICollectionViewData _updateItemCounts] 5 0x105a8a42c -[UICollectionViewData numberOfSections] 6 0x104630849 -[TKListViewLinearLayout initLayout] 7 0x10462bda2 -[TKListViewLinearLayout prepareLayout] 8 0x105a87c78 -[UICollectionViewData _prepareToLoadData] 9 0x105a88524 -[UICollectionViewData validateLayoutInRect:] 10 0x105a2f8c2 -[UICollectionView layoutSubviews] 11 0x1051a6f50 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] 12 0x104e27cc4 -[CALayer layoutSublayers] 13 0x104e1b788 CA::Layer::layout_if_needed(CA::Transaction*) 14 0x104e1b606 CA::Layer::layout_and_display_if_needed(CA::Transaction*) 15 0x104da9680 CA::Context::commit_transaction(CA::Transaction*) 16 0x104dd6767 CA::Transaction::commit() 17 0x104d31b97 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) 18 0x106ff1964 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ 19 0x106ff15f3 __CFRunLoopDoTimer 20 0x106ff117a __CFRunLoopDoTimers 21 0x106fe8f01 __CFRunLoopRun 22 0x106fe8494 CFRunLoopRunSpecific 23 0x109ddca6f GSEventRunModal 24 0x1050e2964 UIApplicationMain 25 0x102f308ad ffi_call_unix64 26 0x122c1b1e0 file:///app/tns_modules/nativescript-telerik-ui-pro/autocomplete/autocomplete.js:181:42: JS ERROR TypeError: undefined is not an object (evaluating 'this._owner.suggestionView.ios') Sep 5 09:38:40 Genesiss-MacBook-Air com.apple.CoreSimulator.SimDevice.40F69E43-92A1-4FCC-8C5B-F18E01DC56B3.launchd_sim[12509] (UIKitApplication:cr.altus.als[0x2dc8][87078]): Service exited due to Segmentation fault: 11

Which platform(s) does your issue occur on?

iOS.
On Android is working as expected.

Please provide the following version numbers that your issue occurs with:

  • Progress NativeScript UI version: 3.0.4
  • CLI: 3.1.3
  • Cross-platform modules: 3.1.1
  • Runtime(s): 3.1.0

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Run attached demo, in tabview-menu.component.html when I put RadAutocompleteTextView inside the tab of the TabView component, it fails on iOS.
demo.zip

autocomplete bug

Most helpful comment

Hi @genesis06 ,

Thank you for writing to us and reporting this issue. I was able to reproduce it on our side using the provided project. We can confirm that there is an bug in the RadAutoCmpleteTextView when used inside a TabView which has been resolved and will be available in the upcoming 3.1.0 release which should be available by the end of the week.

All 6 comments

Hi @genesis06 ,

Thank you for writing to us and reporting this issue. I was able to reproduce it on our side using the provided project. We can confirm that there is an bug in the RadAutoCmpleteTextView when used inside a TabView which has been resolved and will be available in the upcoming 3.1.0 release which should be available by the end of the week.

Is this issue fixed with suggestMode="Suggest"? I am seeing that suggestion box does not appear inside the tab view. Looks like suggestMode="Append" works fine.

Getting the following error on both suggestMode="Suggest" and suggestMode="Append"
JavaScript error: file:///app/tns_modules/nativescript-ui-autocomplete/ui-autocomplete.js:169:36: JS ERROR TypeError: undefined is not an object (evaluating 'owner.suggestionView.ios')

Getting the following error on both suggestMode="Suggest" and suggestMode="Append"
JavaScript error: file:///app/tns_modules/nativescript-ui-autocomplete/ui-autocomplete.js:169:36: JS ERROR TypeError: undefined is not an object (evaluating 'owner.suggestionView.ios')

Same for me

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tsonevn picture tsonevn  路  3Comments

adnanaliarshad picture adnanaliarshad  路  4Comments

tbozhikov picture tbozhikov  路  4Comments

ginev picture ginev  路  4Comments

felipebernardes picture felipebernardes  路  3Comments