Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3568: Sets input field value when repository path is updated. #3583

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hansal7014
Copy link

@hansal7014 hansal7014 commented Oct 13, 2019

What changes are being made? (feature/bug)

Fixes a bug where the selected repository path is not showing in the input field if the user edits the field.

Why are these changes necessary? Link any related issues

Fixes bug as requested in issue #3583

Unit Test

@request-info
Copy link

request-info bot commented Oct 13, 2019

Hey there! We would appreciate if you could provide us more information about what you're trying to accomplish here!

@@ -86,6 +87,8 @@ export default {
methods: {
fileSectorInput(event) {
this.pathToRepository = event.target.files[0].path.split("\\").join("/");
var repositoryPathInput = document.getElementById("pathToRepository");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try doing it with refs?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using refs first but that didn't fix the issue. I added a ref="repositoryPath" to the inputText element and then put the following code in the fileSectorInput method:

this.$refs.repositoryPath.value = this.pathToRepository;

Do you have any suggestions as to why using the refs didn't work?
Thanks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me take a look into that.

@mittalyashu
Copy link
Member

@hansal7014 May I know which OS did you used while working on this PR?

@mittalyashu
Copy link
Member

I am getting this error on testing it on MacOS 10.15.2 (not sure if this problem is OS specific).

Screenshot 2019-12-29 at 5 39 42 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants