You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tap Event Does Not Fire When Using codeFile In Different Directory #1667
tap event does not fire when the main XML's codeFile is in a different directory than the XML. Page element's loaded event seems to work fine.
For example, if the main module is views/launches/default and it loads the XML. The Page tag has a codeFile attribute pointing to controllers/launches/default.
The tap event exported from this codeFile never runs. If the codeFile is in the same directory as the XML it works without any problems.
Which platform(s) does your issue occur on?
Both.
Please provide the following version numbers that your issue occurs with:
CLI: 1.6.1
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
I have verified this problem. I have made a simple project , where ActionItem works. Could you test this project. If there is still a problem, please sent us a new simple project which shows the problem.
ghost changed the title [-]Tap Event Does Not Fire for ActionItems[/-][+]Tap Event Does Not Fire When Using codeFile In Different Directory[/+]on Feb 29, 2016
Well, the codeFile and XML file should be in the same directory. In this way NativeScript is searching codeFile for every XML. I hope this information helps. Please let me know if I can assist you any further. Thank you in advance.
Activity
tsonevn commentedon Feb 29, 2016
I have verified this problem. I have made a simple project , where ActionItem works. Could you test this project. If there is still a problem, please sent us a new simple project which shows the problem.
I am attaching link to the project repository:
https://github.com/tsonevn/TestActionItem.git
[-]Tap Event Does Not Fire for ActionItems[/-][+]Tap Event Does Not Fire When Using codeFile In Different Directory[/+]tsonevn commentedon Mar 1, 2016
Well, the codeFile and XML file should be in the same directory. In this way NativeScript is searching codeFile for every XML. I hope this information helps. Please let me know if I can assist you any further. Thank you in advance.
lock commentedon Aug 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.