Answer the question
In order to leave comments, you need to log in
What is the problem with clearing the field?
There is an input with
(value='{{ profile.defaultPassInputs.inputValue }}')
(ng-click='profile.setEmptyInputs("inputCancel")')
this.defaultPassInputs = {
inputValue: '',
}
setEmptyInputs(action) {
if (action === "inputCancel") {
this.defaultPassInputs.inputValue = '';
this.core.popupWindow(this.core.hasPopups(),'hide'); //закрывает модальное окно, в котором все происходит
}
}
this.defaultPassInputs.inputValue = '';
would be to pass just an empty value to the value of the input before closing, and when the modal is reopened, the input won't contain the previous value, but that doesn't happen. What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question