-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-autocomplete not rendering #4668
Comments
There is currently a bug (#4667) where the |
@Baudin999 A fix was just pushed for #4667 in master (8849213). Can you test it out and see if it fixes your issue? |
@topherfangio Thank you for replying, will test it tomorrow morning. Changing it to 'item' did not fixed it though. EDIT: I've just finished testing with the latest version on the master branch, the result is the same, it does not seem to fix the problem. |
Might there be anything else I can try or maybe some file in the source someone can point me towards; I can try and "fix"? |
@Baudin999 We've pushed a couple more fixes to the autocomplete over the last day or two. Can you try again against the latest master version? If it still doesn't work, can you make sure to update your GitHub repo and I'll try to take a look in my off-time this weekend? |
@topherfangio Thank you for the help. I have just tried the latest version in both a dialog and the home page and both do not work. I really can't find what's not working. My repo has been updated. It will do almost anything by running the following commands:
The only thing you'll have to change are the relative paths to the angular material libs. I would advice putting both the js and css files right in the root of the
The reason for this is that I've setup the routes on the server this way. You can configure this in the If you have any problems with this let me know. Just one snag, any time you change the PS: routes you'll want to test: |
@Baudin999 I can't seem to get your repo working. I had to globally install 21 Sep 05:00:41 - [nodemon] restarting due to changes...
21 Sep 05:00:41 - [nodemon] starting `node ./out/server/server.js 1337`
/Users/topher/Documents/Development/testing/ckAvalon_md/out/server/setup.mongolab.js:11
return new Promise(function (_resolve, _reject) {
^
ReferenceError: Promise is not defined
at initializeMongoDB (/Users/topher/Documents/Development/testing/ckAvalon_md/out/server/setup.mongolab.js:11:16)
at Object.<anonymous> (/Users/topher/Documents/Development/testing/ckAvalon_md/out/server/server.js:30:38)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3 Can you test installing this on a clean machine and make sure you have all of the setup steps documented and then I'll take another look? |
@topherfangio Thank you for trying, I will look into this, for now I've just commented out the mongolab code with includes the But, the strange thing is that Thank you again for trying and if there is anything else I can do let me know! |
I am running v0.10.26, so apparently I need to upgrade. I'll give that a try, but it may be later tonight or tomorrow. |
No problem. I can recommend using nvm for node versions. You can swap out a version for another one if you need to run certain applications with certain versions. |
@topherfangio Anything I can do to help? I still can't find a way to get this to work. |
@Baudin999 I afraid I can't dig in much more at the moment, but it looks like there might be something a bit wrong with your setup. For instance, I had to add the following to your if (!angular.isString(raceSearchText)) {
// Don't do anything if we don't have text
return races;
} That said, I still couldn't get the autocomplete to work; although, it looks like the latest autocomplete demos aren't working in the codepens for some reason, so I'll look into that. Perhaps it's related. |
@topherfangio No problem, thank you for looking at the problem. You are absolutely right that I have some issues with the implementation. It used to work in the Code Pen though so I just copy pasted the code and checked it in. I would rework that once I got the autocomplete working with some server side querying. I hope the issue will be fixed sometime in the future. Do you want me to keep this issue open? Or should I close it? |
Since the Codepen is actually broken, let's keep it open so I can track it. |
@topherfangio I've revisited the problem and after some checking and "messing about" in the source I've found that the function
gives the error. When I remove this line everything works fine. The other thing I've noticed is that in the
If you want I can continue to dig into the problem? |
@Baudin999 Do you think you would be able to create a very simple Codepen that reproduces the issue now that you know exactly what it is? That will definitely help me get an exact understanding and be able to find a solution. Thanks so much for continuing to dig into it! |
I am trying to create a small demo application in which I demo the awesomeness which is ngMaterial, but I ran into an issue with the md-autocomplete:
version: 0.11.0
using the npm package
It does not render correctly, the races autocomplete should be rendered but is not:
The markup I use is:
I cannot reproduce the issue in a CodePen.
I can however give you a link to the GitHub repo if you need it.
Extra information:
the controller used: https://github.com/Baudin999/ckAvalon_md/blob/master/src/app/modules/characters/controllers/addCharacterController.js
The view used:
https://github.com/Baudin999/ckAvalon_md/blob/master/src/app/modules/characters/pages/add-character.html
This view is loaded in a Dialog.
The text was updated successfully, but these errors were encountered: