未显示Angular 4按钮禁用图标

时间:2018-05-01 12:48:06

标签: html angular disabled-input

Console image of the inspected element

问题:当我的按钮具有已禁用的属性并且我将鼠标悬停在该按钮上时,未显示已禁用的图标。

有人可以建议我如何解决这个问题吗?

我已在下面附上了一个代码段:

<form (ngSubmit)='onSubmit(form)' *ngIf="!submitted" #form="ngForm"> 
    <input required #password="ngModel" [(ngModel)]="stackDefaultData.password" name="password" type="password" class="form-control"> 
    <button type="submit" [disabled]="form.invalid">Submit</button> 
</form>     

1 个答案:

答案 0 :(得分:0)

这应该有效:

def send_simple_message(mailtext, filename=""):
  requests.post("https://api.mailgun.net/v3/mydomain.in/messages",
  auth=("api", "key-1234"),
  files=[("attachment", open(filename))],
  data={"from": "Credit Card Manager <creditcards@mydomain.in>",
  "to": ["bob@mydomain.in"],
  "subject": "Summary of Credit Card payments due",
  "text": mailtext})