-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
base: master
Are you sure you want to change the base?
Conversation
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"); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@hansal7014 May I know which OS did you used while working on this PR? |
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